Skip to content

This sample shows how to work with the Azure Cosmos DB SQL API and the Azure Cosmos DB Python SDK.

License

Notifications You must be signed in to change notification settings

intellectronica/azure-cosmos-db-sql-python-flask-webapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

page_type languages products description urlFragment
sample
python
azure
azure-cosmos-db
How to use the Azure Cosmos DB with the SQL API with a Flask WebApp
azure-cosmos-db-sql-python-flask-webapp

Build a Python web application using Azure Cosmos DB and the SQL API

This sample shows a Python web application (Flask) using Azure Cosmos DB SQL API and the Azure Cosmos DB Python SDK.

Prerequisites

Before you can run this sample, you must have the following prerequisites:

Run your application locally

  1. Clone this repository using:

    git clone https://github.com/Azure-Samples/azure-cosmos-db-python-getting-started.git

  2. Open the config.py file and replace the ENDPOINT and the KEY values with the values of your Cosmos DB Account.

  3. Open a command line and run: python app_todo.py.

  4. If a browser doesn't open automatically, start the browser of your choice and navigate to localhost:5000. Alternatively, open a new command line and make requests. See bellow some examples.

Request Examples (NOT UPDATED)

TO DO

Deploy the web app to Azure App Service

Follow the steps described in this quickstart to deploy the web application to Azure App Service.

About

This sample shows how to work with the Azure Cosmos DB SQL API and the Azure Cosmos DB Python SDK.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 97.9%
  • HTML 2.1%