TSRPC_Badminton-Scoreboard/backend1/README.md

49 lines
583 B
Markdown
Raw Permalink Normal View History

2022-04-29 06:54:55 +00: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.
```shell
npm run doc
```
### Generate ServiceProto
```
npm run proto
```
### Generate API templates
```
npm run api
```
### Manually sync shared code
```
npm run sync
```