express
npm i
npm i express@4.17.1
const express = require('express')
const app = express()
app.listen(80, () => {
console.log('express server running at http://127.0.0.1');
})
安装nodemon
npm install -g nodemon
nodemon 执行的文件
安装body-parser 第三方中间件
npm i body-parser
安装中间件
npm i cors@2.8.5
npm i express-session
npm i jsonwebtoken express-jwt