A boilerplate/starter project for quickly building three.js app using Vite & Three.
Clone the repo:
git clone --depth 1 https://github.com/bibashmgr/vite-three-js-boilerplate
cd vite-three-js-boilerplate
Install the dependencies:
npm install
Run app in development:
npm run dev
Package | Version |
---|---|
vite | |
three | |
events |
public\
|--models\
|--textures\
src\
|--config\ # Environment variables and configuration related things
|--helpers\ # Helper classes and functions
|--scenes\ # Scenes and Objects logic
|--utils\ # Utility classes and functions
|--camera.js
|--experience.js
|--renderer.js
index.html
main.js
style.css