Express application generator
Use the application generator tool,
express-generator, to quickly create an application skeleton.
express-generator package installs the express command-line tool. Use the following command to do so:
$ npm install express-generator -g
If you run this command, it creates entire expressjs project for you. i.e. it scaffolds the entire project which is running a model view. There are the files which gets created:
If you see content of
package.json, you will find several dependencies already added into it. So the whole
package.json was scaffolded as the part of generator. Then you can see the contents of app.js.
By default when you write
express to generate files you get a
jade template engine.