express generator code example
Example 1: EXPRESS generator
$ npm install express-generator -g
Example 2: how to download express without view
npm install express-generator --no-view
Example 3: generate express app
$ npx express-generator
Example 4: EXPRESS generator
$ express -h
Usage: express [options][dir]
Options:
-h, --help output usage information
--version output the version number
-e, --ejs add ejs engine support
--hbs add handlebars engine support
--pug add pug engine support
-H, --hogan add hogan.js engine support
--no-view generate without view engine
-v, --view add view support (ejs|hbs|hjs|jade|pug|twig|vash) (defaults to jade)
-c, --css add stylesheet support (less|stylus|compass|sass) (defaults to plain css)
--git add .gitignore
-f, --force force on non-empty directory
Example 5: express generator
$ npm install -g express-generator
Example 6: express-generator
$ npm install