Live deployment at https://aghtochess.mionskowski.pl/
In order to deploy the application locally run:
docker-compose up -d --build
and navigate to localhost:8080
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).
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.
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.
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