koa and exprsss difference
-
koa no built-in middleware
-
express There are several built-in middleware, such as express.static () // Load static resources
-
koa no longer req, res request, which is encapsulated in the context ctx inside
-
is req express request data, the respective content res
-
koa own package routing rules
installation
Global Installation: koa-generator frame
Create a new folder: myapp
cd myapp
koa -h: View koa frame content
npm -e myapp installation environment: automatically generate a folder
npm install: the installation file directory structure