Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipeagger/fastapi-redis-demo-py
Micro-Service Fast API with Redis on Python
https://github.com/felipeagger/fastapi-redis-demo-py
fastapi python redis
Last synced: 2 days ago
JSON representation
Micro-Service Fast API with Redis on Python
- Host: GitHub
- URL: https://github.com/felipeagger/fastapi-redis-demo-py
- Owner: felipeagger
- License: mit
- Created: 2019-10-25T17:39:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T12:19:29.000Z (about 2 months ago)
- Last Synced: 2024-08-09T13:44:02.775Z (about 2 months ago)
- Topics: fastapi, python, redis
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastapi-redis-demo-py
Demo Using Fast API with Redis on PythonSalvando e Recuperando dados do Cache no Redis com Python.
# Subir a Aplicacao com Docker:
Acesse a raiz do repositorio e rode:
```
make docker
```Parar a Aplicacao: make dockerdown
Para mais detalhes: make help
# Dependencias
FastAPI, redis, pytest, starlette
# Requisitos :
Deixar as Porta (8000, 6379) do seu host local livre, pois serão essas portas que a aplicacão ira utilizar.
# Fluxo de Inicialização da Aplicacao
1. Baixa as images da DockerHub;
2. Docker Faz o Build da Imagem do Python com o Fonte da Aplicacao;
3. Docker-Compose sobe uma stack com os Containers necessario da API;
# Endereços e ServicosNo Navegador acesse:
API = http://127.0.0.1:8000/api-docs
# Links/Observações
Para Utilizar Docker é necessario ter instalado:
```
Docker: https://www.docker.com/Docker-Compose: https://docs.docker.com/compose/
```# Referencias
https://fastapi.tiangolo.com/tutorial/first-steps/
https://redislabs.com/lp/python-redis/