A simple, clean Flask-based Todo application using SQLite and SQLAlchemy.
- Add, edit, delete tasks
- Mark tasks as completed and view completed tasks
- Simple SQLite database (auto-created on first run)
- Python 3.10+ installed
- Git (optional)
- Open PowerShell in the project root:
cd "...\Python Projects\Todo App"- Activate the bundled virtual environment:
- PowerShell:
.\env\Scripts\Activate.ps1- Command Prompt:
.\env\Scripts\activate.bat- Install (or verify) dependencies:
pip install -r requirements.txtpython -m venv env
.\env\Scripts\Activate.ps1
pip install -r requirements.txtpython run.pyOpen your browser at: http://127.0.0.1:5000
The SQLite database
todoDataBase.dbis created automatically on first run.
- The app uses
Flaskfor the web server andFlask-SQLAlchemyfor the ORM. - Data model:
ToDo(id, status, content, date). - Routes:
/— view and add active tasks/edit/<id>— edit a task/delete/<id>— delete a task/complete/<id>— mark a task completed/completed— view completed tasks
- To update
requirements.txtafter adding packages:
pip freeze > requirements.txt- Toggle debug mode by changing
app.run(debug=True)inrun.pytoFalsefor production.
This project is licensed under the MIT License — see the LICENSE file for details.