Aliraza4278/Full-Stack-Todo-App
0
Full Stack Todo App - Backend API
A FastAPI backend for the Todo application with JWT authentication and PostgreSQL database.
Features
- RESTful API endpoints for task management
- JWT-based authentication
- User isolation (users can only access their own tasks)
- PostgreSQL database with SQLModel ORM
API Endpoints
GET /- Health checkGET /docs- Swagger API documentationPOST /api/{user_id}/tasks- Create a taskGET /api/{user_id}/tasks- List all tasksGET /api/{user_id}/tasks/{task_id}- Get a specific taskPUT /api/{user_id}/tasks/{task_id}- Update a taskDELETE /api/{user_id}/tasks/{task_id}- Delete a taskPATCH /api/{user_id}/tasks/{task_id}/complete- Toggle task completion
Tech Stack
- FastAPI
- SQLModel (SQLAlchemy + Pydantic)
- PostgreSQL (Neon)
- JWT Authentication
