Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ramsailopal/flask-yottadb-demo
A flask demo using YottaDB as a backend
https://github.com/ramsailopal/flask-yottadb-demo
flask mumps python yottadb
Last synced: about 5 hours ago
JSON representation
A flask demo using YottaDB as a backend
- Host: GitHub
- URL: https://github.com/ramsailopal/flask-yottadb-demo
- Owner: RamSailopal
- Created: 2022-10-03T09:27:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-10T10:08:32.000Z (about 2 years ago)
- Last Synced: 2023-03-08T13:39:45.051Z (over 1 year ago)
- Topics: flask, mumps, python, yottadb
- Language: HTML
- Homepage:
- Size: 1.14 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flask-yottadb-demo
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.
![Alt text](flask.JPG?raw=true "view")
# Provisioning
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/RamSailopal/flask-yottadb-demo)
Locally:
git clone https://github.com/RamSailopal/flask-yottadb-demo.git
cd flask-yottadb-demo
docker-compose up
# Backend
On completion of the provisioning of the environment, navigate to http://serveraddress:5000/user to GET and POST data# YottaDB view
^PATIENTS(1,"age")=52
^PATIENTS(1,"name")="Bob Taylor"
^PATIENTS(1,"sex")="Male"# Front-end
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
# Mysql comparison
This implementation has also be done with mysql as opposed to YottaDB for comparison purposes.
The mysql implementation can be found here:
https://github.com/RamSailopal/flask-mysql-demo