$ npm install express --save
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
-
Express 5.0 documentation is now available.
The API documentation is a work in progress. For information on what’s in the release, see the Express release history.