All Projects → donle → sgs

donle / sgs

Licence: GPL-3.0 license
dsanguosha.online/sgs

Programming Languages

typescript
32286 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to sgs

pyGeoStatistics
Geostatistics in Python
Stars: ✭ 70 (-4.11%)
Mutual labels:  sgs
TideBot
我的 IRC 机器人,虽然这个 Bot 能让聊天者在 IRC 里玩游戏,但除了游戏,还有其他很多功能。
Stars: ✭ 26 (-64.38%)
Mutual labels:  sanguosha
SgsNoteBook
三国杀武将手册
Stars: ✭ 17 (-76.71%)
Mutual labels:  sanguosha

SGS (三国杀)

Getting Started

  1. Clone this repo:
$ git clone [email protected]:donle/sgs.git <working_directory>
  1. Install dependencies:
$ cd <working_directory>
# cnpm is recommended if you're in China.
$ npm install
$ cd src/server
$ npm install
$ cd ../ui/platforms/desktop
$ npm install
  1. Running. You need to start the server and client respectively.
# cwd is <working_directory>
# Start server
$ cd src/server
$ npm run dev #dev:win if you're using Windows.
# Start client
$ cd ./ui/platforms/desktop
$ npm run start:mac #start:win if you're using Windows.

Test with electron environment

  1. Running electron in the frontend root directoy
$ cd [<work_directory>]/src/ui/platforms/desktop
  1. Launch dev web for electron
$ yarn electron-dev:mac #electron-dev:win if you'r using Windows
  1. Lunch electron locally with embedded dev web
$ yarn electron:mac #electron:win if you're using Windows

Configuration

You may configure how the clients and server execute and communicate.

edit src/server/server_config.ts to configure the server edit src/ui/platforms/desktop/src/client.config.ts to configure the web client

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].