- Download the Microsoft Axure Cosmos DB Emulator from this link
- Install the program
- Open Command Prompt
- Type in:
"C:\Program Files\Azure Cosmos DB Emulator\Microsoft.Azure.Cosmos.Emulator.exe" /NoFirewall - Wait for a desktop notification that says the program has completely launched.
- Once it has launched, open the system tray from the taskbar and right click on the Cosmos DB icon.
- Select
Open Data Explorer - There are four fields there labelled URI, Primary Key, Primary Connection String, and Mongo Connection String. Make sure to edit the following lines in
~\Calendar\Web.configin Visual Studio:
<add key="endpoint" value="Enter the URI value here"/>
<add key="authKey" value="Enter the Primary Key here"/>- Save the file.
- In the Cosmos DB Data Explorer, click
Exploreron the side bar. - Create a new Databse and name it
calendar. - Create a new Collection and fill the following fields in the following manner:
- Database id -
Use existing,calendar - Collection id -
events - Partition key -
/Creator - and click
Ok.
- Click the button in the top-center of the screen labelled
IIS Express (<Defualt Broswer>). - Please wait for the application to launch.