- Module bundling via webpack with auto reload
- sass
- Babel for client side
- Serverside view templates via pug
- mongoDB with mongoose || postgres with sequelize
- deployment to gh-pages
pre requisites
- nodeJS (6.3.0)
- npm (3.10.3)
- Postgres
run the project
development
cd <Project>
npm install
npm run build #terminal 1 // will be running webpack dev server
npm start #terminal 2
development server should be running on localhost:3000.
production
- change node_env to production
vim server/config/environment/default-env.js
add process.env['NODE_ENV'] = 'production';
and save
- build
cd <Project>
npm install
npm run build-prod
- run
npm start
npm run deploy-gh
this will 1. build client in dev environment, and push client/dist folder to origin gh-pages branch