Home > AI > Backend > NodeJs > Express >

express generator

Step 1: install

$ npm install -g express-generator

Step 2: start the project

$ mkdir mydir
$ cd mydir
$ express
$ express --view=pug myapp (or, this will set view to pug)
$ npm install // install dependencies
$ DEBUG=myapp:* npm start // start the server

Step 3: check the server, localhost:3000

Related posts:

Leave a Reply