Giter VIP home page Giter VIP logo

threejs-starter's Introduction

Three.js starter

This repo offers an easy to use starter kit for a Three.js project. You can use it to create a client only but if you also want to do some server side stuff you can easily implement it in the server class.

Features

  • Three.js
  • TypeScript
  • Webpack

Project structure

├── README.md
├── bin
│   └── server.ts - Used to start the node server
├── nodemon.json - Nodemon config
├── package.json - Dependencies
├── src
│   ├── client
│   │   ├── assets - Place your assets here
│   │   ├── index.html - Index html template
│   │   ├── main.ts - Client code starts here
│   │   ├── style.css - Global styling
│   │   └── vendor.ts - Import vendor packages here
│   ├── config
│   │   ├── environment.ts - Environment configuration
│   │   ├── paths.ts - Paths to client, server, dist, etc
│   │   ├── webpack.common.ts - Webpack common config
│   │   ├── webpack.dev.ts - Webpack development config
│   │   └── webpack.prod.ts - Webpack production config
│   └── server
│       └── server.ts - Express Node.js server
└── tsconfig.json

Getting Started

  1. Run npm install
  2. Run npm start
  3. Check http://localhost:3000 in your browser
  4. Start developing in src/client/main.ts

Available commands

  • npm start - Start a local development server with a watcher for client and server side changes
  • npm run build - Bundle the client to the dist folder
  • npm run start:prod - Start a server with the dist version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.