Express.JS


Projects


Prepare Environment


# npm install -g nodemon
# npm install -g express
# npm install -g express-generator

$ su - developer
$ cd /project/
$ express .
$ npm install
$ nodemon start


Options:

--css less|stylus Adds a CSS preprocessor to your project, either Less or Stylus, depending on which you type in the command.

--ejs Changes the HTML template engine from Jade to EJS.
--jshtml Changes the HTML template engine from Jade to JsHtml.
--hogan Changes the HTML template engine from Jade to Hogan.