An open API service indexing awesome lists of open source software.

https://github.com/nodejh/koa-init

Initial koa project
https://github.com/nodejh/koa-init

Last synced: 5 months ago
JSON representation

Initial koa project

Awesome Lists containing this project

README

          

## 初始化 koa 项目

1. koa版本为koa2
2. 使用 koa-static 加载静态文件
3. 使用 koa-views 渲染模板,模板引擎使用 ejs
4. 使用 koa-logger 记录日志
5. 使用 koa-bodyparser 解析 HTTP body
6. 使用 koa-router 管理路由

## ESLINT

https://www.npmjs.com/package/eslint-config-airbnb

```
(
export PKG=eslint-config-airbnb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
```