> For the complete documentation index, see [llms.txt](https://easonwang.gitbook.io/class/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easonwang.gitbook.io/class/koa.md).

# Koa框架

Koa有分`v1`與`v2`

Koa1:主要使用`Generator`

```
安裝: npm install koa
```

Koa2:主要使用`async/await`

```
安裝: npm install koa@2
```

這裡我們使用Koa2為教學

中文翻譯的官方文件可參考 <https://github.com/guo-yu/koa-guide>
