Skip to content

mhgolestan/django-tdd-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test-Driven Development with Django, Django REST Framework, and Docker

Features and Technologies

This project demonstrates the implementation of a RESTful API using modern development practices and tools:

Core Technologies

  • Python with Django and Django REST Framework
  • PostgreSQL database
  • Docker containerization
  • GitLab CI/CD pipeline

Development Practices

  • Test-Driven Development (TDD) methodology
  • Unit and integration testing with pytest
  • Docker-based development and testing environment
  • Code quality checking with linters
  • Parallel test execution with pytest-xdist

Key Implementations

  • Custom User model in Django
  • RESTful API using Django REST Framework Views and Serializers
  • API documentation with Swagger/OpenAPI and Core API
  • Static asset management with WhiteNoise
  • Test parameterization and mocking with pytest

DevOps & Deployment

  • Docker multi-stage builds for production
  • Docker cache optimization for CI/CD
  • Continuous Integration with GitLab CI
  • Deployment to Heroku with Docker
  • Production setup with Gunicorn and Postgres

About

This project demonstrates the implementation of a Django RESTful API using Docker and TDD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages