TSRPC_Badminton-Scoreboard/backend1
2022-05-04 11:13:09 +08:00
..
.vscode [mod] 2022-05-04 11:13:09 +08:00
src [mod] 2022-05-04 11:13:09 +08:00
test [mod] 2022-05-04 11:13:09 +08:00
.env [mod] 2022-05-04 11:13:09 +08:00
.gitignore [mod] 2022-05-04 11:13:09 +08:00
.mocharc.js [mod] 2022-05-04 11:13:09 +08:00
Dockerfile [mod] 2022-05-04 11:13:09 +08:00
package-lock.json [mod] 2022-05-04 11:13:09 +08:00
package.json [mod] 2022-05-04 11:13:09 +08:00
README.md [mod] 2022-05-04 11:13:09 +08:00
tsconfig.json [mod] 2022-05-04 11:13:09 +08:00
tslint.json [mod] 2022-05-04 11:13:09 +08:00
tsrpc.config.ts [mod] 2022-05-04 11:13:09 +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