1const express = require('express')
2const app = express()
3const port = 3000
4
5app.get('/', (req, res) => res.send('Hello World!'))
6
7app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))
8
1## Command
2$ npx express-generator
3
4: 'For earlier Node versions, install the application generator as a global
5npm package and then launch it':
6$ npm install -g express-generator
7$ express
8
9## Display the command options with the -h option:
10$ express -h