Three.js Boilerplate
A boilerplate/starter project for quickly building three.js app using Vite & Three.
Quick Start:
To create a project, simply run:
npx build-threejs-app <project-name>
Install the dependencies:
npm install
Run app in development:
npm run dev
Dependencies:
Project Structure:
public\
|--models\ # Contain gltf models
|--textures\ # Contain textures
src\
|--constants\ # Contain environment variables and configuration related things
|--helpers\ # Contain helper classes & functions
|--scenes\ # Contain scenes & objects
|--shaders\ # Contain shaders
|--utils\ # Contain utility classes & functions
|--Camera.js # Handle cameras & controls
|--Experience.js # Handle experience & scenes
|--Renderer.js # Handle renderers
index.html
main.js
style.css # Custom styling