This project demonstrates Test-Driven Development (TDD) using Django and Django REST Framework, with containerization through Docker. It is designed to run in local development and can be deployed to Heroku for production.
The following tools were used in this project:
Before starting, make sure you have the following installed:
# Clone this project
$ git clone https://github.com/kvncampos/django-tdd-docker
# Access
$ cd django-tdd-docker
# Install dependencies
$ poetry shell
$ poetry install
# Local Development, Run Project
$ invoke run
# The server will initialize at <http://localhost:8009/>
# HTTP STATUS
$ http://localhost:8009/ping/
> Response:
{
"ping": "pong!"
}
# Using Docker
$ docker-compose -f development/docker-compose.yml up --build
# The server will initialize at <http://localhost:8000/>