Skip to content

PranavP2412/ToDoApp_Only_Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Flask MongoDB To-Do App

A multi-user Task Management application built with Python using the Flask framework and MongoDB. This application allows users to create accounts, log in securely, and manage their own private list of tasks.

Tech Stack

This project uses a Full Stack Python architecture:

  • Backend: [Flask](For this I followed a youtube video of coding with sagar) (Python Microframework)
  • Database: [MongoDB](NoSQL Database)
  • Database Adapter: Flask-PyMongo I read just the documents for this
  • Frontend: only used basic HTML
  • Styling: styling is done by ai I just adjusted it according to my thoughts

Features

  • User Authentication:
    • User Registration and Login.
    • Session management using Flask Sessions.
    • Route protection (users cannot access tasks without logging in).
  • Task Management (CRUD):
    • Create: Add new tasks.
    • Read: View a list of tasks specific to the logged-in user.
    • Update: Toggle tasks as "Done" or "Undo".
    • Delete: Remove tasks permanently.
  • Architecture:
    • Uses Flask Blueprints (auth_bp and tasks_bp) to separate authentication logic from application logic.
    • Relational Data: Tasks are linked to specific users via their unique MongoDB ObjectIds.

πŸ“‚ Project Structure

/project-root β”‚ β”œβ”€β”€ app/ β”‚ β”œβ”€β”€ init.py # App factory, DB configuration, Blueprint registration β”‚ β”œβ”€β”€ routes/ β”‚ β”‚ β”œβ”€β”€ auth.py # Login, Register, Logout logic β”‚ β”‚ └── tasks.py # Task CRUD operations β”‚ └── templates/ β”‚ β”œβ”€β”€ base.html # Master layout β”‚ β”œβ”€β”€ login.html # Login form β”‚ β”œβ”€β”€ register.html # Registration form β”‚ └── tasks.html # Main dashboard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published