Skip to content

Three Js boilerplate code that works as a template with linters set up so that the developer can focus on the development process.

Notifications You must be signed in to change notification settings

uzairali19/three-js-boilerplate

Repository files navigation

Three.js Boiler Template

This is a basic boilerplate for anyone who starts to work with three.js. The boilerplate contains all the necessary three.js components to help you get started. The repo includes already setup linters for anyone to get started. Big shoutout to Microverse for providing the linters configurations. In order to see the results that your repo is marked check, push your code for github actions to run your checks.

screenshot

The boiler plate includes:

  • Camera
  • Geometry
  • Materials
  • Textures
  • Mesh
  • Lights
  • Renderer
  • Debugging with dat.gui

Built With

  • Threejs
  • Vite
  • Node Package Manager

Live Demo

Live Demo Link

Getting Started

To get a local copy up and running follow these simple example steps:

Setup

Download Node.js.

Run the following commands:

For dependencies

# Install dependencies (only the first time)
npm install

# Run the local server at localhost:3000
npm run dev

# Build for production in the dist/ directory
npm run build

To test your code before pushing it to your repo:

# To check for any HTML errors
npx hint .

# To check for CSS errors
npx stylelint "**/*.{css,scss}"

# To check for Javascript errors
npx eslint .

Authors

👤 Author

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Please give a ⭐️ if you like this project!

Acknowledgments

  • Shout out to Bruno Simon who has inspired me to follow this path. If you want to learn his extensive course check out. Threejs Journey

📝 License

This project is MIT licensed.

About

Three Js boilerplate code that works as a template with linters set up so that the developer can focus on the development process.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published