Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 642 Bytes

File metadata and controls

36 lines (23 loc) · 642 Bytes

Flask / Hug webapp demo

Simple proof-of-concept webapp. Hug provides API endpoint onto SOBI database, Flask renders HTML from templates and results of website calls.

Example result: example_999.html

Setup

pip install -r requirements.txt

Database endpoint

Start database API (on port 8000)

ORACLE_PASSWORD=somesecretpassword hug -f endpoint.py

Example query:

curl localhost:8000/borehole/1234

Web app

Start webapp (on port 5000)

FLASK_APP=app.py flask run

Navigate to http://localhost:5000/borehole/1234.