Available commands to run with npm run
:
start
: build the production package and run the production server (no universal)start:dev
: build the dev package and run the server in dev mode (no universal rendering — auto-restarts on changes)build
: build the production packagebuild:dev
: build the dev packagebuild:dev:watch
: build the dev package in watch mode (listen for changes and re-build immediately)
- Install the total.js, webpack and babel modules
npm install
- Generate bundled react files using webpack, files will be copy to /public
npm run build
- Start the server from the root directory of project
node server
- Visit http://localhost:8000