Skip to content

Autobattler type game with epic design and upgrading based on customizable quiz questions.

Notifications You must be signed in to change notification settings

zemiret/AGHtochess

Repository files navigation

AGHtochess

Deploy to production

Live deployment at https://aghtochess.mionskowski.pl/

Local deployment

In order to deploy the application locally run:

docker-compose up -d --build

and navigate to localhost:8080

Questions

The file with questions is located at communicator/assets/questions.json. You can modify its content to change the questions present in the game (make sure there is at least one question of each difficulty).

Manual generation

There is a script for generating new questions.

scripts/generate_questions.py

It will lead you through generating questions, then you can just paste the geneated json into the communicator/assets/questions.json file.

Generation from a PDS/Drill file

There is also a script for generating question files from a PDS / Drill format.

scripts/drill2questions.py drill-file [start-id]

It will output a json string compatible with communicator/assets/questions.json file.

Architecture

Architecture


Remote deployment

Navigate to docker-compose.yml.production and adjust environment variables to suit the environment.

SSL certificate is required for websocket connections. The deployment script supports the use of Let's encrypt nginx companion proxy to handle that matter.

Automatic port forwarding can be enabled using nginx-auto-proxy.

On the remote environment run:

docker-compose -c docker-compose.yml.production up -d --build

Development

The team

About

Autobattler type game with epic design and upgrading based on customizable quiz questions.

Resources

Stars

Watchers

Forks

Packages

No packages published