express-generator

Other topics

Remarks:

Express generator is a great tool for getting a project up and rolling quickly. Once you understand the organization it implements, it's a real time saver.

Installing Express Generator

npm --install express-generator -g

Creating an App

express my-app

Start App

Using start option

npm start

Using Nodemon

nodemon 

Using forever

forever start 'js file name'

To stop in forever

forever stop ''js file name'

To restart in forever

forever restart 'js filename'

List the server ruuning using forever

forever list

Parameters:

ParameterDefinition
-h, --helpoutput usage information
-V, --versionoutput the version number
-e, --ejsadd pjs (Embedded JavaScript) templating engine support (defaults to jade, which has been renamed to Pug)
--hbsadd handlebars templating engine support
-H, --hoganadd hogan.js engine support
--gitadd .gitignore
-f, --forceforce on non-empty directory
-c <engine>, --css <engine>add stylesheet <engine> support (less, stylus ,compass, sass) (default is css)

Contributors

Topic Id: 4512

Example Ids: 15786,15787,15788

This site is not affiliated with any of the contributors.