A simple and elegant Todo application built with Flask and SQLite3. Create, manage, and organize your tasks with a clean and intuitive interface.
- β Create new todos with title and content
- πΎ SQLite3 database for persistent storage
- π¨ Bootstrap 5 responsive UI
- π± Mobile-friendly design
- β‘ Flash messages for user feedback
- Backend: Flask (Python)
- Database: SQLite3
- Frontend: HTML, CSS, Bootstrap 5
- Template Engine: Jinja2
- Python 3.7 or higher
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/ArdaAlp/TodoApp.git cd TodoApp -
Install dependencies:
pip install -r requirements.txt
-
Run the application:
flask run
-
Open your browser and navigate to:
http://127.0.0.1:5000
TodoApp/
β
βββ app.py # Main Flask application
βββ db.py # Database functions
βββ requirements.txt # Python dependencies
βββ README.md # Project documentation
β
βββ static/
β βββ index.css # Custom CSS styles
β
βββ templates/
β βββ index.html # Main HTML template
β
βββ todos.db # SQLite database (created automatically)
- Enter a title and content for your todo
- Click "Create Todo" button
- Your todo will be saved to the database
- Success message will be displayed
The application uses a secret key for session management. You can change it in app.py:
app.secret_key = 'your-secret-key-here'CREATE TABLE todo (
id INTEGER PRIMARY KEY AUTOINCREMENT,
title TEXT NOT NULL,
content TEXT NOT NULL,
date_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)Contributions, issues, and feature requests are welcome!
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
Arda Alp
- GitHub: @ArdaAlp
- Flask documentation
- Bootstrap team for the amazing CSS framework
- SQLite for the lightweight database solution
β Don't forget to star this repository if you found it helpful!