https://github.com/cacivy/koa-typescript
🚀️koa2 & typescript
https://github.com/cacivy/koa-typescript
blog koa2 mongdb reset typescript
Last synced: over 1 year ago
JSON representation
🚀️koa2 & typescript
- Host: GitHub
- URL: https://github.com/cacivy/koa-typescript
- Owner: Cacivy
- License: mit
- Created: 2016-11-30T01:41:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-29T12:12:31.000Z (about 7 years ago)
- Last Synced: 2025-03-17T18:33:59.599Z (over 1 year ago)
- Topics: blog, koa2, mongdb, reset, typescript
- Language: TypeScript
- Homepage:
- Size: 353 KB
- Stars: 38
- Watchers: 1
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Koa2 & TypeScript2
> 这是一个基于Koa2和TypeScript的nodejs项目。
### todo
- [x] 实时监测
- [x] sourcemap debug
- [x] restful api
- [x] jade模版
- [x] logger
- [x] 路由自动匹配controller
- [x] 统一数据返回格式
- [x] 集成[restc](https://github.com/ElemeFE/restc)
- [x] 自动完成api文档[apidoc](https://github.com/apidoc/apidoc)
### dev
```
docker-compose up
```
```
# initialize
npm i -g typescript typings
# install
npm i & typings i
# watch&build typescript
tsc
# server
npm run dev
# doc
npm i apidoc -g
npm run doc
```
> 推荐使用[VS Code](https://code.visualstudio.com), 以便于获得最好的typescript开发体验
### directory
```
.
├── build 转换后的js
├── node_modules
├── src ts目录
├── controller 对应路由
├── log 日志文件夹
├── model mongoodb Schema
├── util
├── static 静态代理文件夹
├── views jade模版
├── package.json
├── tsconfig.json ts配置文件
├── typings.json
└── README.md
```