<!--
* @Author: your name
* @Date: 2021-08-19 14:48:31
* @LastEditTime: 2021-08-19 14:56:08
* @LastEditors: Please set LastEditors
* @Description: README
* @FilePath: \md-\koa\README.md
-->
# `Koa` 使用
## 配置环境
1. 安装`koa`
```shell
npm install --save koa
```
3. 启动`koa`服务
```javascript
const Koa = require('koa')
const app = new Koa()
app.use(async ctx => { ctx.body = 'hello world'})
app.listen(3000)
```
5. 添加`koa`路由插件