The swiping movie suggestor!
Backend:
- (setup your python venv)
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
(choose a password etc)python manage.py populateMovies
python manage.py runserver
Frontend:
cd frontend
npm i
npm start
$ sudo apt update && sudo apt install -y docker.io docker-compose
$ sudo systemctl enable --now docker
$ sudo usermod -aG docker $USER
$ newgrp docker
- Build + start container + create superuser
$ docker-compose up -d --build
$ docker-compose exec backend python manage.py createsuperuser
- Stop + remove volume
$ docker-compose down -v
- Clean up removed volume(s)
$ docker image prune -af
- Start container (detached + no build)
$ docker-compose up -d
- Stop container (dont remove volumes)
$ docker-compose down