Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 796 Bytes

README.md

File metadata and controls

37 lines (30 loc) · 796 Bytes

Movie API

A Movie Database API built with Django, Django REST framework, PostgreSQL and Docker

Getting Started

Requirements:

  • docker

Startup/Shutdown:

make start
make stop

Make migrations:

make migrations
make migrate

Create superuser

make superuser

Populate DB

Exec:

docker-compose exec -w /code/app web python manage.py populate_db --path=/code/data/genres.csv --app_name=core --model_name=Genre
docker-compose exec -w /code/app web python manage.py populate_db --path=/code/data/movies.csv --app_name=core --model_name=Movie
docker-compose exec -w /code/app web python manage.py populate_db --path=/code/data/networks.csv --app_name=core --model_name=Network

Execute tests

make test