https://github.com/davidjnevin/tdd-fastapi
A Test Driven Development Project using FastApi, Docker, Pytest and Tortoise ORM
https://github.com/davidjnevin/tdd-fastapi
Last synced: 3 months ago
JSON representation
A Test Driven Development Project using FastApi, Docker, Pytest and Tortoise ORM
- Host: GitHub
- URL: https://github.com/davidjnevin/tdd-fastapi
- Owner: davidjnevin
- Created: 2023-05-03T11:14:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-17T02:03:47.000Z (about 1 year ago)
- Last Synced: 2024-12-31T02:23:56.571Z (5 months ago)
- Language: Python
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test-Driven Development with FastAPI and Docker

## Project Overview
- An asynchronous RESTful API with Python and FastAPI
- Using Test-Driven Development
- Testng app with pytest
- Interacts with a Postgres database asynchronously
- Containerizes FastAPI and Postgres inside a Docker container
- Runs unit and integration tests with code coverage inside a Docker container
- Checks code for any code quality issues via a linter
- Configures GitHub Actions for continuous integration
- Uses GitHub Packages to store Docker Images
- Speeds up a Docker-based CI build with Docker Cache
- Parameterizes test functions and mock functionality in tests with pytest
- Runs tests in parallel with pytest-xdist
- Documents a RESTful API with Swagger/OpenAPI
- Runs a background process outside the request/response flow## Technologies
- FastAPI
- Tortoise ORM
- NLTK
- Docker
- Github Actions
- Pytest
- MakefileThis project was built using the [Test-Driven Development with FastAPI and Docker](https://testdriven.io/courses/tdd-fastapi/) course.