Django-powered AI scavenger hunt game
- Install Python 3.12^.
- Install poetry.
- Run
poetry install
in the top-level project directory.- You can run
poetry config virtualenvs.in-project true
to keep your .venv within the project.
- You can run
- Download PostgresQL version 16
- Download Docker
- First time running docker compose, use
docker exec -it <container id> python3 manage.py createsuperuser
to create a super user (save credentials somewhere safe!). You can get the container id usingdocker container ls
.
- Run
poetry run pip freeze > requirements.txt
so that the Docker containers will be able to install the current dependencies. - Use .env.sample as a reference to create and populate an
.env.dev
file. - Run
docker compose -f compose.dev.yml up --build -d
- Run
poetry run pytest
to run Python tests.