This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
express-generator with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Express' application generator.
$ npm install -g express-generator
The quickest way to get started with express is to utilize the executable
express(1) to generate an application as shown below:
Create the app:
$ express --view=hbs /tmp/foo && cd /tmp/foo
$ npm install
Start your Express.js app at
$ npm start
This generator can also be further configured with the following command line flags.
-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 -v, --view <engine> add view <engine> support (dust|ejs|hbs|hjs|jade|pug|twig|vash) (defaults to jade) -c, --css <engine> add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css) --git add .gitignore -f, --force force on non-empty directory