Skip to content

Game TRI - Words guessing game influenced by Codenames.

Notifications You must be signed in to change notification settings

zakhio/tri-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game TRI

Words guessing game influenced by Codenames.

Running the game locally

To run the game just call

docker compose up --build

Note: --build is required in case of code changes to rebuild docker image for the service, otherwise Docker would use cache version

Local development

At first, run Redis

docker compose up -d redis

Then enable auto-builds for frontend

cd ./frontend && pnpm run watch

And the last step is to run backend (which will also serve frontend as static files)

cd ./backend && ./gradlew bootRun

Note: use this command (or enable it in IDE as action) to refresh frontend files in the classpath

./gradlew reload

Re-generating frontend client sdk

The code for frontend/src/api is generated from swagger definition which generated from backend. Swagger to TypeScript relies on swagger-codegen tool (do not forget to install it).

docker compose up -d redis
(cd backend && ./gradlew clean generateOpenApiDocs)
(cd frontend && npm run generate-rest-client)

Deployment

Server is running on rootless containers via podman. The pod definition can be found in deployment/prod folder.

Helpful links: