- Criar virtual environment e utilizá-lo
python -m venv venv
source venv/bin/activate
- Instalar módulos
pip install -r requirements.txt
- Rodar aplicação
flask run
or
gunicorn "app:create_app()"
- Endpoints
flask run
service endpoint = http://localhost:5000/oauth/v1
health endpoint = http://localhost:5000/oauth/v1/health
gunicorn
service endpoint = http://localhost:8000/oauth/v1
health endpoint = http://localhost:8000/oauth/v1/health
Instalar Docker e Docker Compose
-
Docker Compose (https://docs.docker.com/compose/install/)
-
Criar Dockerfile para aplicação
-
Criar Docker Compose para aplicação e banco de dados postgres