A full-stack task management web application built using Flask, JavaScript, and PostgreSQL. The application allows users to register, log in, and manage their daily tasks with dynamic updates using the Fetch API (AJAX).
Live Application: https://to-do-flask-app-4vev.onrender.com
- User Registration and Login
- Secure Password Hashing
- Session-based Authentication
- Create Tasks
- Edit Tasks
- Delete Tasks
- Toggle Task Status (Pending / Completed)
- Clear All Tasks
- Dynamic Task Loading using Fetch API
- Toast Notifications for User Feedback
- Responsive Task Table UI
- Flask
- SQLAlchemy
- Gunicorn
- HTML5
- CSS3
- JavaScript
- Fetch API (AJAX)
- PostgreSQL
- Render
- GitHub
To_Do_Flask_App
│
├── app/
│ │
│ ├── routes
│ │ ├── auth.py
│ │ └── tasks.py
│ │
│ ├── static
│ │ ├── css
│ │ └── js
│ │ ├── login.js
│ │ ├── register.js
│ │ ├── tasks.js
│ │ └── toast.js
│ │
│ ├── templates
│ │ ├── base.html
│ │ ├── login.html
│ │ ├── register.html
│ │ └── tasks.html
│ │
│ ├── __init__.py
│ └── models.py
│
├── screenshots/
├── run.py
├── config.py
├── requirements.txt
└── README.md
git clone https://github.com/anupam311/To_Do_Flask_App.git
cd To_Do_Flask_App
python -m venv venv
Activate it
Windows
venv\Scripts\activate
Mac / Linux
source venv/bin/activate
pip install -r requirements.txt
Set the database URI
SQLALCHEMY_DATABASE_URI=your_database_url
Example
postgresql://username:password@host:port/database
python app.py
The app will start on
http://127.0.0.1:5000
| Route | Method | Description |
|---|---|---|
/tasks |
GET | Fetch all tasks |
/add |
POST | Add a new task |
/toggle/<id> |
POST | Toggle task status |
/delete/<id> |
POST | Delete a task |
/edit/<id> |
POST | Edit a task |
/clear |
POST | Clear all tasks |
Anupam Chaudhary
GitHub: https://github.com/anupam311
This project is created for educational and portfolio purposes.
Register.png)
Registration-successful.png)
Login.png)
Login-successful.png)
Adding%20task-1.png)
Adding%20task-2-done.png)
toggle%20status.png)
Delete%20task.png)
Edit%20task.png)
All%20tasks%20cleared.png)
Logged%20out.png)