page_type | languages | products | description | ||
---|---|---|---|---|---|
sample |
|
|
This sample demonstrates a Python application that will manage restaurant application using different type of nosql technologies |
This sample is a web site using different technologies to resolve different use case when you build a web application using different azure cosmsodb technologies
This sample demonstrates a Python application with FLASK ( this is a sample , you can make in other langage the same no problem )
This sample is a web site using different technologies to resolve different use case when you build a web application Having an authentification module ( register , login management ... ) Purpose menu/ Product to select ( with admin part and user part ) Store all the orders ( base on command by user , make simple stat ( number of order , amount spend ... ) Having a fraud suspicious detection ( having the possiblity to detect a fraud , load the order in bussiness logic different )
WELCOME to Gemina trattoria ( why gemina , this was the name of my Grand mother who teach me how to cook , and she was an incredible mediteranean grand mother with all the advantage you can imagine for his grandchildren)
To run this sample, you'll need:
An Azure subscription
From your shell or command line:
$ git clone https://github.com/emmanueldeletang/nosqlwebappcosmosdb/
Open the Menu.json file and see a menu collection sample. You can modify the items to load your menu in the application. Make sure to check the url of the image for each meal. You can use your own azure storage to load meal's images.
For the moment you need to create 3 Cosmsodb account ( of course this is for the sample and to show you how simple is it to ) one SQL one Mongo API one Gremlins one storage account to have the image one Transalator ressource to have automatic translation Setup all the connection string in config.py from your Gremlins , mongo api and cosmosdb API
the partition key for cosmosdb nosql and mongo can be email , for gremlins Db the partition key is part
if you want to load the menu you can use a mongoimport command from the menu.json sample in the directory You need to create a cosmosdb container in SQL api name User and with the partition key (email )
in the directory launch pythonh APP.py and the web site will be launch
you can deploy in a web app too if you want