考拉后端项目模板
- Node 8.9+
- npm 5+
- typescript 3.6+
更新日期 2019/10/16
git clone https://github.com/kaolalicai/klg-koa-starter-kit.git
先安装 klg-init
npm i klg-init -g
初始化项目
klg-init --type project-ts foo
$ npm run doc
启动服务:
$ npm run dev
访问 http://localhost:3008/docs/index.html
建议使用 plantuml 来画设计图。 请安装 plantuml 插件。
默认是集成测试,针对接口
$ npm run test
$ npm run cov
目前还没有兼容 typescript,需要修复
$ make build
默认推送到公司仓库,可以在 Makefile 中修改仓库地址和镜像信息