Skip to content

Repository files navigation

AzureHeads stocks-demo

This is a demo app that utilizes Azure Functions / CosmosDB and Azure SignalR

 

Prerequisites

You need to install the following software in case they are not available in your machine.

  • Node - info
  • Azure CLI - info
  • Azure Functions Core Tools - info
  • Yarn - info (optional)

 

Azure Resources

Before you get started, you need to create the following Azure Resources:

Create Azure Cosmos DB

You can find more info here.

No subscription available?

You can try Azure CosmosDB for a limited time with no subscription or credit-card number required. For more info please visit this link.

Create Azure SignalR

You can find more info here.

 

Getting Started

Step 1: Install all depdendencies

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.

Step 2: Run your azure functions locally

If you have properly installed Azure Functions Core Tools CLI you can start your functions with the following command:

func start

Step 3: Run the demo web app

To start the web application you can run the following command:

yarn start

Step 4: Update data in your database

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

About

Demo project for the AzureHeads 24th meetup on how to apply automatic updates using Azure Functions CosmosDB and SignalR

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages