Example Page | http://sgs.takashiro.cn |
---|---|
Author | Kazuichi Takashiro |
It's a GUI client application of the famous board game Legends of the Three Kingdoms based on React.js.
It connects to the server application via WebSocket.
- Node.js v10 or later versions
- karuta-node-server
- sanguosha-server
- You'll need 3 repositories to debug the project, including karuta-node-server, sanguosha-server and
sanguosha-react
(this repository). The 3 repositories should be in the same folder. - Clone karuta-node-server.
- Enter
karuta-node-server
. - Run
npm i
andnpm run build
- Clone sanguosha-server.
- Enter
sanguosha-server
. - Run
npm i
andnpm run build
- Create a symlink
karuta-node-server/extension/sanguosha
<---->sanguosha-server/dist
- Open
sanguosha-server
with Visual Studio Code. - Click
Launch
to start the server. - Open
sanguosha-react
with Visual Studio Code. - Run
npm start
to start webpack. - Click
Launch (http)
. - Now you are ready! Type your nickname and start a new game.