Reference

https://expressjs.com/en/starter/generator.html

 

Makes a basic server with two simple routes

npm init

npm install -g express-generator

express -h


For example, the following creates an Express app named myapp. The app will be created in a folder named myapp in the current working directory and the view engine will be set to Pug:
express --view=pug myapp



Install dependencies

cd myapp
npm i


DEBUG=myapp:* npm start