根据 chat 示例创建 game-server,支持分布式部署、域名访问、数据库连接和基础使用
This commit is contained in:
16
README.md
16
README.md
@@ -1,3 +1,15 @@
|
||||
# zyz_server
|
||||
# 环境搭建
|
||||
- 安装 ts 环境
|
||||
`npm install -g tsc ts-node typescript`
|
||||
- 安装 pinus
|
||||
`npm install -g pinus`
|
||||
|
||||
赵云传服务器
|
||||
# 运行
|
||||
## 简介
|
||||
服务器主要分为游戏服和账号服,游戏服以长连接为主,处理主要的游戏逻辑。账号服以短连接为主,处理账号等功能。
|
||||
|
||||
## 运行游戏服
|
||||
`cd game-server && node tsrun.js`
|
||||
|
||||
## 运行 web-server
|
||||
`cd web-server && node app`
|
||||
Reference in New Issue
Block a user