/flask-openshift-wercker

Flask APP to run on OpenShift with automatic deploys by WerckerCI

Primary LanguagePythonThe UnlicenseUnlicense

flask-openshift-wercker

Flask APP to run on OpenShift with automatic deploys by WerckerCI

wercker status

A simple calculator API

pip install -r requirements.txt
python app.py

then

http://localhost:5000/calc/sum/1/2

{"result": 3}

Operations are: sum, sub, mul, div

Swagger API

The Swagger API is available at:

http://localhost:5000/apidocs/index.html

Fork this REPO

Create a fork on your own github account

Set a new application on OpenShift using this template:

click the link below and change the git url to your own repo

Launch on OpenShift

Create a new deployment step on WerckerCI

Setup a deployment to OpenShift