Go to file
2022-04-29 15:12:51 +08:00
.vscode [add] first templates 2022-04-29 14:54:55 +08:00
src [add] 整理警告 2022-04-29 15:12:51 +08:00
test [add] 整理警告 2022-04-29 15:12:51 +08:00
.env [add] 整理警告 2022-04-29 15:12:51 +08:00
.gitignore [add] first templates 2022-04-29 14:54:55 +08:00
.mocharc.js [add] first templates 2022-04-29 14:54:55 +08:00
Dockerfile [add] first templates 2022-04-29 14:54:55 +08:00
package-lock.json [add] 整理警告 2022-04-29 15:12:51 +08:00
package.json [add] 整理警告 2022-04-29 15:12:51 +08:00
README.md [add] first templates 2022-04-29 14:54:55 +08:00
tsconfig.json [add] first templates 2022-04-29 14:54:55 +08:00
tslint.json [add] first templates 2022-04-29 14:54:55 +08:00
tsrpc.config.ts [add] first templates 2022-04-29 14:54:55 +08:00

TSRPC Server

Usage

Local dev server

Dev server would restart automatically when code changed.

npm run dev

Run unit Test

Execute npm run dev first, then execute:

npm run test

Build

npm run build

Additional Scripts

Generate API document

Generate API document in swagger/openapi and markdown format.

npm run doc

Generate ServiceProto

npm run proto

Generate API templates

npm run api

Manually sync shared code

npm run sync