Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 1.26 KB

File metadata and controls

62 lines (47 loc) · 1.26 KB

arch-vim

Docker commands

"Module not found: Error: Can't resolve '[insert here]' in '/app/src'"

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

Might need to run

docker compose exec -it django-backend python manage.py makemigrations
docker compose exec -it django-backend python manage.py migrate

Building after changes:

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

SQLite file

The SQLite file is in .gitignore, so after running the previous command, run

docker compose exec backend manage.py migrate

Starting after being built

docker compose up

Shutting down

docker compose down

React frontend once running here:

http://localhost:3000/

Django backend once running here:

http://localhost:8000/