- Inicializar o ambiente virtual
- Ativar o ambiente virutal
source .venv/bin/activate
2. Instalar as bibliotecas que serão utilizadas na API
pip install flask-restful
- .
- ├── api
- │├── models -> Todo processamento interno da API
- │└── resources -> Apenas o que o usuário tem acesso
- └── README.md
4. Criar o init.py dentro da pasta ./api/
- Dentro do arquivo init, importar as bibliotecas a serem utilizadas no projeto
from flask import Flask
from flask_restful import Api
- Esse arquivo contém as configurações, que serião
- gunicorn --bind 0.0.0.0:5000 -w 4 run:app
- gunicorn -c setup.py run:app