Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sean-bradley/three.js-boilerplate-ts-vite


https://github.com/sean-bradley/three.js-boilerplate-ts-vite

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# Three.js-Boilerplate-TS-Vite

A Three.js Boilerplate for TypeScript Vite projects.

This boilerplate is supplementary to my **ThreeJS and TypeScript** courses at [Udemy](https://www.udemy.com/course/threejs-tutorials/?referralCode=4C7E1DE91C3E42F69D0F) and [YouTube (Channel membership required)](https://www.youtube.com/playlist?list=PLKWUX7aMnlEKTmkBqwjc-tZgULJdNBjEd)

[Introductory Video](https://youtu.be/cZWAqrJhtvQ&list=PLKWUX7aMnlEKTmkBqwjc-tZgULJdNBjEd)

[Course Discount Coupons](https://sbcode.net/coupons#threejs)

## Boilerplate Overview

When run, the boilerplate shows a multi-coloured wireframe cube, with `OrbitControls`, `Dat.GUI` and `Stats.js` included.

[Example](https://sean-bradley.github.io/Three.js-Boilerplate-TS-Vite/)

![](docs/screengrab.jpg)

## Installing

```bash
git clone https://github.com/Sean-Bradley/Three.js-Boilerplate-TS-Vite.git
cd Three.js-Boilerplate-TS-Vite
npm install
```

### Develop

```
npm run dev
```

Visit [http://localhost:5173/](http://localhost:5173/)

### Build Production

```bash
npm run build
npm run preview
```

Visit [http://localhost:4173/](http://localhost:4173/)

### Deploy to GitHub pages

If you forked this repository, then you can publish your changes to GitHub pages.

```bash
npm run deploy
```

Visit `https://.github.io/Three.js-Boilerplate-TS-Vite/`

E.g.,

[https://sean-bradley.github.io/Three.js-Boilerplate-TS-Vite/](https://sean-bradley.github.io/Three.js-Boilerplate-TS-Vite/)