Simple Flask Todo App using SQLAlchemy and SQLite database. Updated with full REST API feature.
For styling, semantic-ui was used on the original version of the repository. To lessen the workload of browsing into semantic-ui.com, I just made the styles inside the Base.html using CSS in this new repository.
The new feature allows the Todo list to be used not just through the HTML interface, but also programmatically—via API calls. This means other apps, JavaScript front-ends, or even mobile apps can now create, read, update, and delete todos. It adds flexibility and modern integration potential, making the app much more powerful and scalable.
I aldo added a Due Date feature for the to-do list. So that the user will be able to add the to-dos deadlines.
Create project with virtual environment
$ mkdir myproject
$ cd myproject
$ python3 -m venv venvActivate it
$ . venv/bin/activateor on Windows
venv\Scripts\activateInstall Flask
$ pip install Flask
$ pip install Flask-SQLAlchemySet environment variables in terminal
$ export FLASK_APP=app.py
$ export FLASK_ENV=developmentor on Windows
$ set FLASK_APP=app.py
$ set FLASK_ENV=developmentRun the app
$ flask run