Skip to content

Basic REST project with Flask , Connexion by Zalando , Docker and tox

License

Notifications You must be signed in to change notification settings

kevinmmartins/python-flask-connexion-example

Repository files navigation

Basic project with Flask and Connexion

Build Status

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