Setup for Nodejs/Express
node will work if you have node
Using Generator
npm install express-generator -g
express [project name] --view=ejs--view=ejsadds ejs engine support--no-view--gitadds a gitignore
Running
Add the following to package.json
"scripts": {
"start": "export NODE_ENV=production && node ./bin/www",
"dev": "export NODE_ENV=development && export DEBUG=app* && nodemon ./bin/www"
}Debug is for debug library
Export works for config library
Last updated