$ mkdir app
/* create app folder */$ cd app
/* move inside the app folder / /
- Before to install express.js you need to have minimum one of them:
- package.json or node_modules */
$ npm init
/* create package.json */$ npm install express --save
/* install express.js locally */$ npm install
/* install requested modules */$ npm ls
/* [optinal] show a list of installed packages / /
- Before install express-generator globally:
$ [sudo] npm install -g express-generator
*/
$ express -e -H -c app
/* scaffolding of app (with a new folder) */$ cd app && npm install
$ npm start
/* launch Expresss server on: http://localhost:3000 */
$ touch README.md
/* create README.md file */