I got tired of the amount of overhead involved in getting a modular THREE.js project up-and-running. This repo is intended to solve some of those problems. I'll keep iterating -- I'd like to include the minimal amount of boilerplate required to stop repeating myself for EVERY project but also be completely unopinionated.
Make sure you have Node and NPM installed.
- Node
v12.10.0
(You can quickly switch to the correct version withnvm use
if you have it installed.) - NPM
>6.10.3
Out-of-the-box, things are pretty simple:
-
π¦ Install dependencies. I use
ci
instead ofi
/install
to avoid versioning discrepancies but live your life.npm ci
-
π Build project. This will just do all the bundling without starting a dev server.
npm run build
-
π Build and run development server. This command will start a development server which watches for changes and auto-reloads at
localhost:9000
.npm start