Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.59 KB

README.md

File metadata and controls

63 lines (46 loc) · 1.59 KB


The swiping movie suggestor!

Development Setup

Build + start local setup (non dockerized)

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

Production Setup

Setup Docker (Linux)

  $ sudo apt update && sudo apt install -y docker.io docker-compose
  $ sudo systemctl enable --now docker
  $ sudo usermod -aG docker $USER
  $ newgrp docker

Build + run production server (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