This application contains: one flask app in app.py
. It serves up data about planets from NASA data at /planets
and /planets/<position>
. It's used in an end-to-end demonstration of Kong and should be imported into Insomnia for full-effect.
It's based on work by the amazing Lorna Jane Mitchell and its beauty is in its simplicity & clarity. It's a training ground for originating API ideas as a specification before implementation. It has been augmented with Kong and Insomnia to show how APIOps can be leveraged to make the API Lifecycle more efficient, clear, and reliable.
FLASK_APP=app.py python -mflask run
In its more portable form, run it as a Docker Container:
docker run -d --name planets -p 5000:5000 kongaaron/flask-planets
To build and tag a new image (see deploy.sh), clone this repo and:
docker build -t <your_docker_hub_account>/flask-planets:1.0 -t <your_docker_hub_account>/flask-planets:latest .
Once you tag and build, upload to hub.docker.com
:
docker push <your_docker_hub_account>/flask-planets