A simple Task Management API built with FastAPI and PostgreSQL.
This project was created to practice real backend skills: database integration, CRUD operations, and API design.
- Python 3.11+
- FastAPI - Modern Python web framework
- PostgreSQL - Relational database
- SQLAlchemy - ORM for database operations
- Uvicorn - ASGI server
app/ βββ main.py # Entry point βββ models.py # SQLAlchemy models βββ database/ βββ init.py βββ db.py # Database connection βββ routes.py # API endpoints
- Task CRUD
- Create, read, update, delete tasks
- Task Progress
- Track progress percentage
- Timestamps
- Auto
created_atandupdated_at
- Auto
- Database-backed
- PostgreSQL as a real backend
- Install dependencies
pip install -r requirements.txt
CREATE DATABASE taskdb;
DATABASE_URL = "postgresql://postgres:YOUR_PASSWORD@localhost:5432/taskdb"