Skip to content

yugam23/todo_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✅ Todo App

Python License: MIT Build Status

A simple, clean Flask-based Todo application using SQLite and SQLAlchemy.


🔧 Features

  • Add, edit, delete tasks
  • Mark tasks as completed and view completed tasks
  • Simple SQLite database (auto-created on first run)

🚀 Quick Start (Windows)

Prerequisites

  • Python 3.10+ installed
  • Git (optional)

Using the existing virtual environment

  1. Open PowerShell in the project root:
cd "...\Python Projects\Todo App"
  1. Activate the bundled virtual environment:
  • PowerShell:
.\env\Scripts\Activate.ps1
  • Command Prompt:
.\env\Scripts\activate.bat
  1. Install (or verify) dependencies:
pip install -r requirements.txt

Create a new virtual environment (if you prefer)

python -m venv env
.\env\Scripts\Activate.ps1
pip install -r requirements.txt

Run the app

python run.py

Open your browser at: http://127.0.0.1:5000

The SQLite database todoDataBase.db is created automatically on first run.


🧭 How it works

  • The app uses Flask for the web server and Flask-SQLAlchemy for 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

🛠 Development Tips

  • To update requirements.txt after adding packages:
pip freeze > requirements.txt
  • Toggle debug mode by changing app.run(debug=True) in run.py to False for production.

📝 License

This project is licensed under the MIT License — see the LICENSE file for details.


About

A minimalist To-Do list project demonstrating core concepts of Flask, SQL, SQLAlchemy development, including state management, local storage, and UI design.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors