examples
chatroom
client-mock
cocos-creator-2.4.7
cocos-creator-3.3.0
cocos-creator-multiplayer
custom-http-res
file-upload
backend
.vscode
src
.gitignore
README.md
package.json
tsconfig.json
tsrpc.config.ts
frontend
first-api
layaair
mongodb-crud
serverless-faas
session-and-cookie
transfer-encryption
user-authentication
scripts
.gitignore
LICENSE
README.md
36 lines
373 B
Markdown
36 lines
373 B
Markdown
# TSRPC Server
|
|
|
|
## Run
|
|
### Local Dev Server
|
|
```
|
|
npm run dev
|
|
```
|
|
|
|
|
|
|
|
### Build
|
|
```
|
|
npm run build
|
|
```
|
|
|
|
---
|
|
|
|
## Files
|
|
### Generate ServiceProto
|
|
```
|
|
npm run proto
|
|
```
|
|
|
|
### Generate API templates
|
|
```
|
|
npm run api
|
|
```
|
|
|
|
### Sync shared code to client
|
|
|
|
```
|
|
npm run sync
|
|
```
|
|
|
|
> If you chose symlink when using `create-tsrpc-app`, it would re-create the symlink instead of copy files.
|