Git Product home page Git Product logo

kendrahavens / azurecosmosdbblogexample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jwidmer/azurecosmosdbblogexample

0.0 1.0 1.0 1.84 MB

Code for the article https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-model-partition-example

Home Page: https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-model-partition-example

License: MIT License

C# 3.64% HTML 0.70% JavaScript 95.66%

azurecosmosdbblogexample's Introduction

AzureCosmosDbBlogExample

About the code

This repository contains sample code for the article How to model and partition data on Azure Cosmos DB using a real-world example. The code included in this sample is intended to further illustrate the concepts from the article.

Prerequisites

  1. Visual Studio 2019 - You can download Visual Studio 2019 Community Edition here.
  2. Azure Cosmos DB Emulator - More information on how to install and use the Azure Cosmos DB emulator can be found here.
  3. Azure Storage Emulator - More information on how to install and use Azure Storage Emulator can be found here.

Running this sample

  1. Clone this repository.

  2. From Visual Studio, open the AzureCosmosDbBlogExample.sln file from the root directory.

  3. In Visual Studio Build menu, select Build Solution (or Press F6).

  4. Start Azure Storage Emulator.

  5. Start Azure Cosmos DB Emulator.

  6. Change the Azure Cosmos Database Name (Optional).

    The Azure Cosmos DB Database Name defaults to MyBlog. If you want to change this you will need to update the name in both the BlogFunctionApp (local.settings.json) and the BlogWebApp (appsettings.json).

  7. Set both projects BlogFunctionApp and BlogWebApp to startup when the solution runs.

    Only the BlogWebApp project will start when you run the solution. To also get the Azure Function App BlogFunctionApp to start, right-click on the Solution and choose Set as Startup Project and then set both projects to start.

  8. You can now run and debug the application locally by pressing F5 in Visual Studio.

  9. You can register as any username to create a new user (this sample does not require a password for logins).

    To login as the Blog Administrator, register and login as the username jsmith. The Admin username can be changed in the BlogWebApp appsettings.json file.

More information

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.