Express
Veröffentlicht am: 13. April 2020
Lesedauer: 1 Min.
mandatory - Node.js needs to be installed
npm i express
file: server.js
const express = require('express')
const app = express()
app.get('/', (req,res) => {
res.send('hello world')
})
app.listen(5000, () => console.log('Server running on Port 5000'))
Middleware Functions have access to the request and response object. Express has built-in Middleware, but there are also 3rd-party packages as well.
Run Development Server
node server.js
Articles in related Categories
04. April 2020
04. April 2020
24. März 2020