Flask Task Manager
A combined Flask API and built‑in web UI for creating, reading, updating, and deleting to‑do tasks.
Features
REST API for tasks (
/tasks): create, list, view, update, delete.Web UI served at
/: add, edit, complete, and remove tasks with a modern Bootstrap design.Single origin—no CORS required: back end and front end run together.
SQLite persistence in
tasks.db, auto‑initialized on first launch.Tech Stack
Python 3.x
Flask (2.2.2)
SQLAlchemy (2.0.x)
SQLite
Bootstrap 5 + Bootstrap Icons (front‑end)
Project Structure
Note:
tasks.db is created automatically via init_db() when you start the app.Prerequisites
Git (for cloning & updates)
Ubuntu/Debian:
sudo apt-get update && sudo apt-get install gitmacOS (Homebrew):
brew install gitWindows: Download Git
Python 3.8+
Setup & Git Commands
Running Locally
Opens server on http://127.0.0.1:5000/
API at
/tasksUI at
/ (renders static/index.html)Web UI Usage
Navigate to http://127.0.0.1:5000/ in your browser.
Add a new task via the input field and + button.
Toggle a task’s completion with the checkbox.
Edit a task title with the ✏️ Edit button.
Remove a task with the 🗑️ Delete button.
API Endpoints
All endpoints accept and return JSON.
Example cURL
Testing
Run the Pytest suite to verify API functionality:
Contributing
Fork the repo
Create a feature branch:
git checkout -b feature/fooCommit:
git commit -m 'Add foo'Push:
git push origin feature/fooOpen a Pull Request
License
Released under the MIT License.
0 likes · 15 views · Jul 19, 2025
A combined Flask API and built‑in web UI for creating, reading, updating, and deleting to‑do tasks.