https://github.com/billy-enrizky/flask-task-manager
This project consists of a simple task manager web application developed using Flask, a micro web framework for Python. The application allows users to manage tasks, including adding, editing, and deleting tasks. It utilizes SQLAlchemy as an Object-Relational Mapping (ORM) tool to interact with a SQLite database.
https://github.com/billy-enrizky/flask-task-manager
flask python sqlalchemy sqlite taskmanager
Last synced: 3 months ago
JSON representation
This project consists of a simple task manager web application developed using Flask, a micro web framework for Python. The application allows users to manage tasks, including adding, editing, and deleting tasks. It utilizes SQLAlchemy as an Object-Relational Mapping (ORM) tool to interact with a SQLite database.
- Host: GitHub
- URL: https://github.com/billy-enrizky/flask-task-manager
- Owner: billy-enrizky
- License: mit
- Created: 2023-10-19T15:05:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T15:46:52.000Z (almost 2 years ago)
- Last Synced: 2025-07-09T08:12:08.035Z (3 months ago)
- Topics: flask, python, sqlalchemy, sqlite, taskmanager
- Language: HTML
- Homepage: http://billyenrizky.pythonanywhere.com/
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Task Manager Using Flask
# Project READMEThis project consists of a simple task manager web application developed using Flask, a micro web framework for Python. The application allows users to manage tasks, including adding, editing, and deleting tasks. It utilizes SQLAlchemy as an Object-Relational Mapping (ORM) tool to interact with a SQLite database.
## Project Structure
The project includes several files and directories:
### app.py
This is the main Python script that initializes the Flask application. It configures the secret key and database URI, sets up the SQLAlchemy database, and imports the routes from the `routes.py` file. The Flask app is run with debugging enabled when this script is executed.
### forms.py
This file defines Flask-WTF forms used in the application for user input. It includes forms for adding and editing tasks. These forms handle data validation and submission.
### models.py
The `models.py` file defines the database model used in the application. It includes a `Task` class with attributes such as `id`, `title`, `date`, and `desc` to represent tasks. This class is used for creating and querying the database.
### routes.py
In `routes.py`, you'll find the routes and views for the Flask application. It defines routes for displaying the task list, adding tasks, editing tasks, and deleting tasks. Views are implemented using Flask's render_template function.
### Templates (HTML files)
Several HTML templates are used to render the web pages. They include:
- **base.html:** The base template for all pages. It includes navigation links and handles message flashing.
- **add.html:** The template for adding a new task.
- **delete.html:** The template for confirming task deletion.
- **edit.html:** The template for editing an existing task.
- **index.html:** The main page displaying the list of tasks.## Usage
To run the project:
1. Ensure you have Python and the required libraries installed.
2. Open your command-line interface.
3. Navigate to the project directory.
4. Execute `python app.py`.
5. Open a web browser and access the application at `http://127.0.0.1:5000/`.## Dependencies
- Flask: A micro web framework for Python.
- Flask-WTF: An integration of the WTForms library for Flask.
- SQLAlchemy: A SQL toolkit and Object-Relational Mapping (ORM) library.