Basic project with Flask and Connexion
Basic Python project using Flask and Connexion by Zalando
https://github.com/zalando/connexion
Requirements
- Docker Compose 1.21.2+
- Python 3.6 +
Run with Docker Compose
# building the container
sudo docker-compose build
# starting up a container
sudo docker-compose up
Build the virtual environment
virtualenv -p /usr/bin/python3.6 venv
source venv/bin/activate
pip3 install -r requirements.txt
pip3 install -r test-requirements.txt
Swagger definition
http://localhost:8081/v1/swagger.json
Health Check
http://localhost:8081/v1/basic/ping
Launch tests
source venv/bin/activate
tox