Using express generator to get things going fast, based on express docs Getting started.
Global install express generator:
npm install express-generator -g
Run it with the flags:
express express-app --ejs --css less --git
npm install --save helmet compression
- helmet - security middleware
- compression - gzip middleware
ES2015 + react compiled dynamically.
npm install --save browserify-middleware babelify babel-preset-es2015 babel-preset-react
For server reloading on source code changes.
npm install --save-dev nodemon
Add script:
"dev": "nodemon --watch ./ --ignore ./public ./bin/www"
Persistent JS based db
npm install nedb --save
npm install --save passport passport-github2 method-override express-partials express-session
Based on link