- Create and activate a virtual environment in the root of the project
python -m virtualenv venv
source venv/bin/activate- Install dependencies
pip install -r requirements.txt-
Run
cp .env.example .env -
Generate a secret to populate
DJANGO_SECRET_KEYin .env
# generate a secret from the command line
python -c "import secrets; print(secrets.token_hex())"-
Run the docker containers:
docker compose up -
Run the database migrations in the
webcontainer
docker compose exec web sh
# inside the container
python manage.py migrate- Create a super user
docker compose exec web sh
# inside the container
python manage.py createsuperuser- Navigate to localhost:8000