API em Python utilizando fast-api
- Docker
- pipenv //pip install pipenv
-
Executando pelo container Docker
docker build -t case . docker run --name case -p 8000:8000 case Acesso em: http://127.0.0.1:8000/docs
-
Executando localmente
Necessário ter Python na versão 3.8 instalada
pipenv install pipenv shell cd src python main.py Acesso em: http://127.0.0.1:8000/docs
- Teste funcional
pytest tests/
- Teste de carga
locust tests/load.py Acesso em: http://0.0.0.0:8089/