Skip to content

"A FastAPI-based Task Manager API with PostgreSQL integration, supporting CRUD operations and task tracking."

Notifications You must be signed in to change notification settings

Malikabriq/FastAPI-based-Task-Manager-API-with-PostgreSQL-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Task Manager 🚀

Python FastAPI License

A FastAPI-based Task Manager API for creating, tracking, updating, and deleting tasks. Integrated with PostgreSQL via SQLAlchemy, featuring computed fields for progress and verdict.


Features ✨

  • CRUD operations for tasks
  • Task details: title, description, priority, status, estimated hours, hours spent
  • Computed fields: progress, verdict
  • Input validation with Pydantic
  • Modular folder structure for scalability
  • PostgreSQL database integration

Quick Start ⚡

1️⃣ Clone the repository

git clone https://github.com/<your-username>/fastapi-task-manager.git
cd fastapi-task-manager
2️⃣ Set up virtual environment
python -m venv venv
# Activate
# Windows (PowerShell)
.\venv\Scripts\Activate.ps1
# Mac/Linux
source venv/bin/activate
3️⃣ Install dependencies
pip install -r requirements.txt
4️⃣ Configure environment variables
Create a .env file with your PostgreSQL credentials:
DATABASE_URL=postgresql://username:password@host:port/dbname
5️⃣ Run the app
uvicorn app.main:app --reload
API Endpoints 🔗
| Method | Endpoint    | Description         |
| ------ | ----------- | ------------------- |
| POST   | /tasks/     | Create a new task   |
| GET    | /tasks/     | Get all tasks       |
| PUT    | /tasks/{id} | Update a task by ID |
| DELETE | /tasks/{id} | Delete a task by ID |
Dependencies:
FastAPI

SQLAlchemy

psycopg2-binary

Pydantic

Uvicorn

About

"A FastAPI-based Task Manager API with PostgreSQL integration, supporting CRUD operations and task tracking."

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages