Sample To-do list application featuring:
- Flask
- mako
- pyHaml
- python 3
- vanilla js
- axios
- redis
- json
Note: If you're looking for the FastAPI version of this To-Do app then visit: https://github.com/makevoid/fastapi-todo-app
pip install flask redis mako git+https://github.com/mikeboers/pyhaml
You need to have Redis running locally listening on the default port 6379.
python3 app.py
This will run the python app using the development server.
Delete is not currently implemented, to flush redis open the cli via:
redis-cli
Then issue a flushdb command:
127.0.0.1:6379> flushdb
All your todos will be deleted.
I recommend to set up waitress, uvicorn or another production-grade server if you plan to finish/improve and host the final application.
Enjoy!
@makevoid