- Install TypeScript
npm install -g typescript
- Install dependencies
npm install
- Start it
npm run dev
- Visit http://localhost:8080
You should see a rotating green wireframe cube, and be able to rotate it further with your mouse.
- Build Repository
npm run build
- Deploy to Github Pages
npm run deploy
This boilerplate was built following these tutuiorial
Development Environment setup:
- Begin Creating the Three.js Project
- Add the Initial Scripts
- Setting up the Webpack Dev Server
- Importing Three.js Modules
- Three.js Typescript Boilerplate
Deployment: