A simple demo of the Python Flask framework using yottadb as a backend
This demonstrates CRUD (create, update, delete) operation with YottaDB, using a front-end UI that allows the adding, amend and deletion of user details.
Locally:
git clone https://github.com/RamSailopal/flask-yottadb-demo.git
cd flask-yottadb-demo
docker-compose up
On completion of the provisioning of the environment, navigate to http://serveraddress:5000/user to GET and POST data
^PATIENTS(1,"age")=52
^PATIENTS(1,"name")="Bob Taylor"
^PATIENTS(1,"sex")="Male"
A crude front-end to demonstate the use of Jinja templates has been added.
To view the front-end, navigate to:
http://serveraddress:5001 - Locally
https://5001-gitpodaddress - Gitpod
This implementation has also be done with mysql as opposed to YottaDB for comparison purposes.
The mysql implementation can be found here: