Test your knowledge of world capitals with this interactive quiz game!
· Play here ·
Play Capital Quest here
If you want to run Capital Quest locally, follow these steps:
- Python 3.10 or higher
- Git
-
Clone the repository:
git clone https://github.com/VictorGoubet/capitalquest.git cd capitalquest
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python launch.py
This will start both the API and front-end components in development mode.
Customize with options:
--env
: Choose betweendev
(default) orprod
environments--component
: Runapi
,front
, orboth
(default) components--api-host
,--api-port
: Set custom API host/port (default: localhost:8000)--front-host
,--front-port
: Set custom front-end host/port (default: localhost:8051)
Example:
python launch.py --env prod --component api --api-port 8080
Note: You can also set these options using environment variables or a .env file:
export api_host=localhost export api_port=8000 export front_host=localhost export front_port=8051 export environment=dev
-
Open your browser and navigate to
http://localhost:8051
(or your custom front-end port)
A Docker image is available for easy setup:
-
Pull the Docker image:
docker pull victorgoubet/capitalquest:latest
-
Run the container:
docker run -p 8051:8051 victorgoubet/capitalquest:latest
-
Access the game at
http://localhost:8051