Skip to content

makevoid/flask-todo-app

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

FastAPI sample to-do list app

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

Install

pip install flask redis mako git+https://github.com/mikeboers/pyhaml

Prerequisites

You need to have Redis running locally listening on the default port 6379.

Run

python3 app.py

This will run the python app using the development server.

Then visit http://localhost:3000

Reset

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.

Production

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

About

Sample To-do list application featuring Flask, redis, json. haml and vanilla js.

Resources

Stars

Watchers

Forks