Skip to content

Multiplayer game (party game) based on rhyming, collaborative poetry (versification)

License

Notifications You must be signed in to change notification settings

pi-kei/rhyme-game

Repository files navigation

rhyme-game

Multiplayer game based on rhyming, collaborative poetry (versification)

Check it out here rhymes-sometimes.ru

Work in progress...

Tech

  • Server part is a module that runs inside heroiclabs/nakama.
  • Client part is a React app.
  • TypeScript is used for both client and server parts.
  • Tested on NodeJs v14.

Dev setup

To install dependencies and build server code:

cd client && yarn install && cd ../server && yarn install && yarn build

Then you can run all in one docker compose command from the project root:

docker-compose up

Alternatively you can run server part separately from client part.

To run server locally:

cd server && docker-compose up

To run client locally:

cd client && yarn install && yarn start

For pre-commit git-hook to work you have to run this command from project directory git config core.hooksPath .githooks.

VSCode

Install extensions dbaeumer.vscode-eslint and esbenp.prettier-vscode. For prettier to work you have to have in .vscode/settings.json:

{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "prettier.requireConfig": true
}