A simple Flask app that allows you to create, read, update, and delete todo items. This app uses Flask for the backend, and HTML templates for the frontend.
- Clone the repository.
- Install the required packages with
pip install -r requirements.txt
. - Run the app with
python app.py
.
The following API endpoints are available:
Returns a list of all todos.
Returns the todo with the specified ID.
Creates a new todo item.
Updates the todo item with the specified ID.
Deletes the todo item with the specified ID.
The app consists of the following files:
app.py
: This file contains the main Flask application.templates/index.html
: This file contains the HTML template for the main page of the app.templates/create.html
: This file contains the HTML template for the create todo page.templates/edit.html
: This file contains the HTML template for the edit todo page.requirements.txt
: This file contains the required packages for the app.README.md
: This file contains information about the app.
To use the app, simply navigate to http://localhost:5000/
in your web browser. From there, you can create new todos, edit existing ones, and delete them.
This app was created by Daniel Fjeldstad (w3bdesign).