This is a demo app that utilizes Azure Functions / CosmosDB and Azure SignalR
You need to install the following software in case they are not available in your machine.
Before you get started, you need to create the following Azure Resources:
You can find more info here.
You can try Azure CosmosDB for a limited time with no subscription or credit-card number required. For more info please visit this link.
You can find more info here.
To install all dependencies and please run the following command:
yarn install
This command will run also a script to initialize a sample db in your Azure Cosmos DB service.
Note: Please update CosmosDB Connection string and key in local.settings.json
file.
If you have properly installed Azure Functions Core Tools CLI you can start your functions with the following command:
func start
To start the web application you can run the following command:
yarn start
To update prices for the records in your Cosmos DB you can run the following command.
yarn update-data:once
# or
yarn update-data:cont # be aware it will consume a lot of RU