This is the server for cuberail.games.
It is being programmed to be a generic server for boardgame.io games.
Requirements: Linux system with Docker and Docker Compose
docker-compose -f docker-compose.dev.yml up
Then, in Docker
npm i
npm run-script update-games
npm run-script start-dev
Games must be in their own repository. Add the reference to the repository to [games.json], with the hash that is being deployed.
The requirements of that game repo are:
/game/game.ts
, and must match the name in games.json
./game/game.ts
must rely on no other libraries or files that aren't in the servernpm ci
must get the build requirementsnpm run-script build-prod
must build the client to ./dist-client
matchId
(the matchId to join)playerId
(the playerId to join)playerCount
(the player count for a hotseat match)Presently, it's a little finicky. I recommend seeing app.ts
and the
index.html
file in the emu-bay-railway-company-1 repo as a template.