Skip to content

RamSailopal/flask-yottadb-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Provisioning

Open in Gitpod

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

About

A flask demo using YottaDB as a backend

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published