Awesome Open Source
Awesome Open Source
Sponsorship

WhiteStormJS - React/Redux - three.js - TypeScript boilerplate

Build Status Dependency Status devDependency Status license

WhiteStorm TypeScript Boilerplate is a starter kit for crafting 3D applications using modern technologies:

Video

Dynamic updates - Redux

Libraries

This starter kit also uses the following libraries and tools:

Core

Utilities

Build System

Dev & Prod Server

Developer Experience

Testing

Directory Structure

.
ā”œā”€ā”€ build                       # Built, ready to serve app.
ā”œā”€ā”€ config                      # Root folder for configurations.
│   ā”œā”€ā”€ types                   # Global type definitions, written by us.
│   ā”œā”€ā”€ webpack                 # Webpack configurations.
│   └── main.ts                 # Generic App configurations.
ā”œā”€ā”€ node_modules                # Node Packages.
ā”œā”€ā”€ src                         # Source code.
│   ā”œā”€ā”€ app                     # App folder.
│   │ ā”œā”€ā”€ components            # React Components.
│   │ ā”œā”€ā”€ containers            # React/Redux Containers.
│   │ ā”œā”€ā”€ helpers               # Helper Functions & Components.
│   │ ā”œā”€ā”€ redux                 # Redux related code aka data layer of the app.
│   │ │   ā”œā”€ā”€ modules           # Redux modules.   
│   │ │   ā”œā”€ā”€ reducers.ts       # Main reducers file to combine them.  
│   │ │   └── store.ts          # Redux store, contains global app state.   
│   │ └── routes.tsx            # Routes.
│   ā”œā”€ā”€ client.tsx              # Entry point for client side rendering.
│   ā”œā”€ā”€ index.html              # root page template
│   └── server.tsx              # Entry point for server of static content.
ā”œā”€ā”€ typings                     # Type definitions installed with typings.              
ā”œā”€ā”€ .gitignore                  # Tells git which files to ignore.
ā”œā”€ā”€ .stylelintrc                # Configures stylelint.
ā”œā”€ā”€ Dockerfile                  # Dockerfile.
ā”œā”€ā”€ favicon.ico                 # Favicon.
ā”œā”€ā”€ package.json                # Package configuration.
ā”œā”€ā”€ README.md                   # This file
ā”œā”€ā”€ tsconfig.json               # TypeScript transpiler configuration.
ā”œā”€ā”€ tslint.json                 # Configures tslint.
└── typings.json                # Typings package configuration.

Installation

You can clone from this repository or install the latest version as a zip file.

$ git clone https://github.com/whitestormJS/whitestorm-typescript-boilerplate
$ cd whitestorm-typescript-boilerplate
$ npm install

Usage

All commands defaults to development environment. You can set NODE_ENV to production or use the shortcuts below.

# Running

$ npm start # This starts the app in development mode

# Starting it with the production build
$ NODE_ENV=production npm start # or
$ npm run start:prod

# Building

$ npm build # This builds the app in development mode

# Commands below builds the production build
$ NODE_ENV=production npm build # or
$ npm run build:prod

# Testing
$ npm test

Notes

# If you want install additional libraries, you can also install their typings from DefinitelyTyped
$ typings install dt~<package> --global --save
# or if it's located on npm
$ typings install <package> --save-dev

Credits

MIT license.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (65,395)Ā 
typescript (8,803)Ā 
react (4,723)Ā 
redux (1,097)Ā 
boilerplate (545)Ā 
threejs (194)Ā 
starter-kit (157)Ā 
react-redux (107)Ā 

Find Open Source By Browsing 7,000 Topics Across 59 Categories