https://github.com/makevoid/fastapi-todo-app
Sample To-do list application featuring FastAPI, redis, json. haml and vanilla js
https://github.com/makevoid/fastapi-todo-app
Last synced: 7 months ago
JSON representation
Sample To-do list application featuring FastAPI, redis, json. haml and vanilla js
- Host: GitHub
- URL: https://github.com/makevoid/fastapi-todo-app
- Owner: makevoid
- Created: 2020-08-29T12:40:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-22T08:47:54.000Z (about 4 years ago)
- Last Synced: 2025-03-25T06:02:45.723Z (10 months ago)
- Language: Python
- Homepage:
- Size: 196 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# FastAPI sample to-do list app
Sample To-do list application featuring:
- FastAPI
- mako
- pyHaml
- python 3
- vanilla js
- axios
- redis
- json
- docker
Note: If you're looking for the Flask version of this To-Do app then visit: https://github.com/makevoid/flask-todo-app
### Install
soon I will add a requirements.txt file for now you will need to install from docker or execute pip install manually of all the dependencies
pip install uvicorn fastapi aiofiles python-multipart redis mako git+https://github.com/mikeboers/pyhaml
### Prerequisites
You need to have Redis running locally listening on the default port 6379.
### Run
./run
This will run the python app via `uvicorn`.
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:
flushdb
All your todos will be deleted
### Docker
Build and run:
docker-compose up --build
#### Redis
Connect to dev redis
redis-cli -p 6380
---
Enjoy!
@makevoid