Run docker container:
docker compose up
New terminal (or detach the docker container) (this deletes the volume that it's using)
docker compose down -v
docker compose build --no-cache
docker compose up
docker compose exec -it django-backend python manage.py makemigrations
docker compose exec -it django-backend python manage.py migrate
docker compose build --no-cache
docker compose up
Manage users
Create a superuser to access the user accounts in localhost:8000/admin
docker compose exec -it django-backend python manage.py createsuperuser
The SQLite file is in .gitignore, so after running the previous command, run
docker compose exec backend manage.py migrate
docker compose up
docker compose down
React frontend once running here:
http://localhost:3000/
Django backend once running here:
http://localhost:8000/