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
- Host: GitHub
- URL: https://github.com/nodejh/koa-init
- Owner: nodejh
- Created: 2017-04-20T11:15:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-16T10:01:15.000Z (over 7 years ago)
- Last Synced: 2025-07-06T16:05:00.111Z (8 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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"
)
```