ai_box / README.md
javed-78's picture
Upload 3 files
25ead9d verified
|
Raw
History Blame Contribute Delete
1.77 kB
# ✦ TaskMaster β€” Flask Task Manager
A clean, fully functional personal task manager built with Flask.
No database required β€” works out of the box!
---
## πŸš€ Quick Start
```bash
# 1. Install Flask
pip install flask
# 2. Run the app
python app.py
# 3. Open browser
# β†’ http://127.0.0.1:5000
```
---
## πŸ—‚ Project Structure
```
taskmaster/
β”œβ”€β”€ app.py ← Flask app + REST API
β”œβ”€β”€ requirements.txt ← Dependencies (just Flask)
└── templates/
└── index.html ← Beautiful single-page UI
```
---
## πŸ”Œ REST API
| Method | Endpoint | Description |
|--------|-----------------------|-----------------------|
| GET | `/api/tasks` | List tasks (filterable)|
| POST | `/api/tasks` | Create a new task |
| PATCH | `/api/tasks/<id>` | Update a task |
| DELETE | `/api/tasks/<id>` | Delete a task |
| GET | `/api/stats` | Get summary stats |
### Query params for GET /api/tasks
- `?done=true/false`
- `?priority=high/medium/low`
- `?category=work/personal/learning/general`
### POST /api/tasks body
```json
{
"title": "My task",
"priority": "high",
"category": "work",
"due_date": "2026-06-30"
}
```
---
## ✨ Features
- Add tasks with title, priority, category, and due date
- Mark tasks as done / pending
- Delete tasks
- Filter by status, priority, or category
- Live stats dashboard (total / done / pending / urgent)
- Toast notifications
- Fully responsive design
- Zero database β€” pure Python in-memory store
---
## πŸ›  Tech Stack
- **Backend:** Python + Flask
- **Frontend:** Vanilla HTML/CSS/JS (no frameworks)
- **Storage:** In-memory (dict) β€” add SQLite easily if you want persistence