hannody / drf_puppy_store_tdd

https://realpython.com/test-driven-development-of-a-django-restful-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test Driven Development with Django Rest Framework using CI/CD with GitHub Actions for Automated Testing and Continues Deployment to Heroku, this project is suitable for Django developers who are looking for expanding their knowledge in the topics of:

1- Preparing a Django RestAPI project for Production (Especially security).

2- Using CI/CD for automation of tasks e.g. testing and continuous deployment.

3- Using a Test-Driven Approach TDD, with reasonably good test coverage score.

The open-source community is the most inspiring and generous, thus, I am publishing this tutorial as a thank you to all open source communities and to all the fellow developers and content creators who make their work and expertise available for everyone, I am working on contributing to open source, starting with baby steps but aiming towards more contributions with free content and collaborations, we all know Knowledge is power & Sharing is caring so let's share our knowledge to empower everyone.

This tutorial draws inspiration from, updates and expands upon the following sources:

1- https://testdriven.io/blog/django-custom-user-model/
2- https://realpython.com/test-driven-development-of-a-django-restful-api/
3- https://www.feldroy.com/books/two-scoops-of-django-3-x
4- https://djangoforprofessionals.com/
5- https://www.youtube.com/watch?v=llaUBH5oayw

However, this repository is using Python 3.8.10, Django 3.2.6, python-decopule for env vars, Test Coverage,Flake8, CICD with GitHub Actions and Deployment to Heroku.

** A working app (CRUD operations only available for Admins at the moment): https://drf-puppy-store.herokuapp.com/

About

https://realpython.com/test-driven-development-of-a-django-restful-api/


Languages

Language:CSS 47.5%Language:JavaScript 46.4%Language:Python 5.8%Language:HTML 0.3%