Best Flask open-source libraries and packages

Minha_api_flask

A project to learn REST API using flask. I intend, in future, make it work with twitte's API.
Updated 7 months ago

Tarefas:

  • Add fresh and refresh token to be requested on methods

Testar:

Testado:

Comandos docker local:

  • docker build -t nome_da_imagem .
  • docker run -ip 5000:5000 -w /app -v "$(pwd):/app" nome_da_imagem sh -c "flask run --host 0.0.0.0"

Comandos docker queue:

  • docker build -t flask_api .
  • docker run -w /app flask_api sh -c "rq worker -u rediss://red-ckev9amnpffc73e2hf7g:37iQ930xK46vEnNMWevWBqyL6YOHBvtm@oregon-redis.render.com:6379 emails"
  • docker run -p 5000:80 flask_api

Comando gunicorn localmente:

  • gunicorn -w 4 'app:create_app()'

Materiais:

Observações:

  • Adicionar jwt claims se quiser funções de admin
Tags main