- Python 3.8.6
- Django 3.1.2
You need to install docker
and docker-compose
according to your OS from following links
- Docker
- Tested with Docker version
19.03.12, build 48a66213fe
- Tested with Docker version
- Docker Compose
- Tested with docker-compose version
1.26.2, build eefe0d31
- Tested with docker-compose version
docker-compose build --no-cache
docker-compose up
docker exec -it movie_catalog bash -c "python manage.py test"
docker exec -it movie_catalog bash -c "coverage run --omit=*/migrations/* --source='.' manage.py test && coverage report"
http://localhost:8000/movies/
- We can make use of
celery
instead ofdjango-crontab
- We can optimize update database operations in cron job by designing some mechanism to fetch only those movies which don't exists in our system.
- We can make a separate container for database in order to allow our system to horizontally scale.
- We can open socket communication with the client, so that whenever a new movie is fetched from
Studio Ghibli Server
, we can notify our users in near real time.