Build a Backend REST API using Python, Django (3.2), Django REST Framework (3.12), Docker, GitHub Actions, Postgres, and Test Driven Development!
To take advantage of Docker Hub's Authenticated Rate Limits of 200/6h, set up secrets in GitHub Settings.
- DOCKERHUB_USER
- DOCKERHUB_TOKEN
Under .github/workflows/
, stores all the actions.
Each yml file starts with three dashes ---
.
There are two containers managed by docker-compose: app and db.
app
will wait for db
.
Progress:
docker-compose run --rm app sh -c "python manage.py startapp recipe"
Run Unit Tests:
docker-compose run --rm app sh -c "python manage.py test"
Apply Model Migrations:
docker-compose run --rm app sh -c "python manage.py makemigrations"