yncat / dfg-server

Online daifugo game server

Home Page:dfg-server.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

online daifugo server

This is online daifugo game server.

Setup development environment

NodeJS 20.x is assumed.

Clone this repository, run npm ci to install dependencies, then run npm start to start the server.

In order to play locally, clone the client side implementation and run it.

Testing

Running npm run test runs tests, including E2E.

Updating the server state definitions

  1. Edit src/rooms/schema/**.ts
  2. Run npm run schema:build
  3. Run npm run schema:copy to copy the generated schema definitions to the frontend repository, assuming that the dfg repository is cloned at ../dfg
  4. Increment the server and frontend protocol versions by one

Docker

You can run npm run docker:build to build a docker image. For running the server via docker, run npm run docker:start after a successful build.

About

Online daifugo game server

dfg-server.vercel.app


Languages

Language:TypeScript 99.3%Language:JavaScript 0.4%Language:HTML 0.3%