A clean, minimal todo web app built with Flask, SQLAlchemy, and Tailwind CSS. Add, edit, and delete tasks — all stored locally with SQLite.
- Add new tasks instantly
- Edit existing tasks
- Delete tasks with one click
- Tasks sorted by creation time
- Responsive layout with Tailwind CSS
| Layer | Technology |
|---|---|
| Backend | Python, Flask |
| Database | SQLite via Flask-SQLAlchemy |
| Frontend | Jinja2 templates, Tailwind CSS |
git clone https://github.com/your-username/task-smash.git
cd task-smashpython -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windowspip install flask flask-sqlalchemypython app.pyVisit http://127.0.0.1:5000 in your browser.
task-smash/
├── app.py # Flask app + routes + SQLAlchemy model
├── templates/
│ ├── base.html # Base layout
│ ├── index.html # Task list + add form
│ └── edit.html # Edit task form
├── static/
│ ├── css/
│ │ └── style.css # Compiled Tailwind CSS
│ └── src/
│ └── input.css # Tailwind source
├── tailwind.config.js
├── postcss.config.js
└── README.md
| Method | Route | Description |
|---|---|---|
| GET / POST | / |
View all tasks / Add a task |
| GET | /delete/<id> |
Delete a task |
| GET / POST | /edit/<id> |
Edit a task |
If you modify the templates and need to recompile the CSS:
npx tailwindcss -i ./static/src/input.css -o ./static/css/style.css --watchMIT — free to use and modify.