A production-ready FastAPI backend for task management.
- FastAPI with modular structure
- PostgreSQL + SQLAlchemy ORM
- Alembic migrations
- JWT Authentication & RBAC
- Redis caching
- Celery background tasks
- Prometheus metrics
- Structured logging
- Dockerized setup with Nginx proxy
- Docker & Docker Compose
- Python 3.11+
- Clone the repository
- Run
sh scripts/init_env.shto setup your environment variables. - Build and start the services:
docker-compose up --build
- Create a virtual environment:
python -m venv venv - Activate it:
source venv/bin/activate(Mac/Linux) orvenv\Scripts\activate(Windows) - Install dependencies:
pip install .[dev]
Once the server is running, visit:
- Swagger UI:
http://localhost:8000/docs - Redoc:
http://localhost:8000/redoc