git clone git@github.com:dbads/ghibli-project.git
create a .env
file in the root of folder parallel to manage.py file and put following secrets in it
API_KEY=apikey
REDIS_HOST=localhost
python -m venv venv
source venv/bin/activate
python manage.py runserver
python manage.py test
localhost:8000/films?id=2baf70d1-42bb-4437-b551-e5fed5a87abe&API-KEY=apikey
can change film id for different films
NOTE: if requesting film with same id within 1 minute then the data will be fetched from cache not the db