Skip to content

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

Notifications You must be signed in to change notification settings

rherik/minha_api_flask

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published