FastAPI backend application with automated tests, code quality checks, Docker support, and Kubernetes deployment.
- Python
- FastAPI
- Pytest
- Docker
- Kubernetes
- GitHub Actions
.
├── .github/workflows/ # CI workflows
├── Codereview/ # Code review tools
├── Requirements/ # Project requirements
├── k8s/ # Kubernetes manifests
├── tests/ # Tests
├── Dockerfile # Docker configuration
└── pytest.ini # Pytest configuration
Install dependencies:
pip install -r requirements.txtRun the application:
uvicorn main:app --reloadAPI:
http://localhost:8000
Swagger:
http://localhost:8000/docs
Run tests with:
pytestBuild the image:
docker build -t healthping .Run the container:
docker run -p 8000:8000 healthpingKubernetes manifests are located in the k8s/ directory.
kubectl apply -f k8s/Check running pods:
kubectl get podsGitHub Actions workflows are located in .github/workflows/ and are used for automated testing and code quality checks.