A simple Flask App to get informations about the local node running the app.
964
A simple Flask App to get informations about the local node running the app.

Python3 installed with pip support.
Clone the current repository, then:
cd demo-app/
pip install -r requirements.txt
flask run
Then you can join the UI from: http://127.0.0.1:5000
If you need to expose the informations on external IP address, use the following run command:
flask run --host=0.0.0.0
Then you can join the UI from: http://:5000
The app provides 3 flask-based-routes:
/ is a simple redirect to /ui/ui provides a simple interface to display to result of API call/api is a endpoint to generate the JSON formated data about the systemIn the /ui interface you can find:
curl command to get the data from a shell/api endpoint<pre> tag with the raw content of the API call result<ul> list with formated dataIn the data you will find the following information:
Content type
Image
Digest
Size
49 MB
Last updated
over 5 years ago
docker pull lrivallain/demo-app