基于koa、react构建,支持mysql、redis查询,依赖Node.js环境。
https://github.com/meizikeai/koa-typescript-practice.git
路径 | 描述 | 详情 |
---|---|---|
client | react.js | -- |
pm2 | pm2.keymetrics.io | -- |
public | koa-static | -- |
server | koa.js / typescriptlang.org | -- |
views | koa-views | -- |
package.json | package.json | -- |
tsconfig.json | typescriptlang.org | -- |
- 克隆项目 -
$ git clone https://github.com/meizikeai/koa-typescript-practice.git
- 安装依赖 -
$ cd koa-typescript-practice && npm i
- 启动项目 -
$ npm run start
开发依赖eslint.org,请使用支持它的编辑器。推荐Visual Studio Code编辑器。
- http://127.0.0.1:3000
- http://127.0.0.1:3000/demo
- http://127.0.0.1:3000/json
- http://127.0.0.1:3000/string
使用 elastic-apm-node 对项目进行链路追踪,建议测试服使用! 具体见 Get started with Koa