Skip to content

Backend application for a TODO list, implemented in Python using Flask and SQLite database.

Notifications You must be signed in to change notification settings

prathameshpatil2002/Todo-List-Application-using-Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TODO List Application

A backend application for a TODO list, implemented in Python using Flask and SQLite database.

Prerequisites

  • Python 3.6 or higher
  • Flask and Flask-SQLAlchemy

Installation

Running the Application

To start the server, run the following command:

python app.py

By default, the application will run on http://localhost:5000

API Endpoints

The following API endpoints are available:

  1. / - Default Route shows all tasks completed/incomplete.
  2. GET /tasks - Get a list of all tasks

  3. POST /tasks - Create a new task

  4. POST /tasks/update/:id - Update a task

  5. /tasks/delete/:id - Delete a task

  6. /tasks/complete/:id - Mark a task as completed

  7. /tasks/incomplete/:id - Mark a task as incomplete

Example Usage

To create a new task, make a POST request to http://localhost:5000/tasks with the following JSON payload:

{
    "title": "Buy Groceries",
    "description": "Milk, Bread, Eggs"
}

To get a list of all tasks, make a GET request to http://localhost:5000/tasks.

To update a task, make a POST request to http://localhost:5000/tasks/update/:id with the following JSON payload:

{
    "title": "Buy Groceries",
    "description": "Milk, Bread, Eggs, Cheese"
}

To delete a task, make a request to http://localhost:5000/tasks/delete/:id.

To mark a task as completed, make a request to http://localhost:5000/tasks/complete/:id.

To mark a task as incomplete, make a request to http://localhost:5000/tasks/incomplete/:id.

Conclusion

This is a simple TODO list application, but it can be extended in various ways, such as adding user authentication, due dates, and more. Feel free to modify and improve this application to fit your needs!

About

Backend application for a TODO list, implemented in Python using Flask and SQLite database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages