Giter Site home page Giter Site logo

erwin-ms / nosqlwebapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emmanueldeletang/nosqlwebapp

0.0 1.0 0.0 28.06 MB

License: The Unlicense

JavaScript 0.05% Python 98.60% C 0.82% C# 0.01% PowerShell 0.10% CSS 0.03% HTML 0.08% Batchfile 0.01% Cython 0.23% Bicep 0.09%

nosqlwebapp's Introduction

page_type languages products description
sample
python
Azure CosmsosDB
This sample demonstrates a Python application that will manage restaurant application using different type of nosql technologies

Build a website with nosql database exemple

About this sample

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

Overview

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)

How to run this sample

To run this sample, you'll need:

An Azure subscription

Step 1: Clone this repository

From your shell or command line:

$ git clone https://github.com/emmanueldeletang/nosqlwebappcosmosdb/

Step 2: Customize the menu

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.

Step 3: Install pre requis

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 )

Step 4: Access the demo application Gemina

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

nosqlwebapp's People

Contributors

emmanueldeletang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.