/KMCraiova2018

Azure functions, adventures into serverless presentation from iQuest Keyboards & Mice Craiova 2018.

Primary LanguageTypeScriptMIT LicenseMIT

Keyboards & Mice 2018 Craiova

Presentation

You can see (and download) the presentation on Scribd

Demo

Prerequisites

Azure

You need to deploy 2 resources inside azure:

Azure SignalR Service

You can click on the following link to deploy a resource in Azure:

Deploy SignalR Service

Get the Connection string from the Keys menu in Azure as we are going to need it later:

SignalR Connection string

Azure Cosmos DB

You can click on the following link to deploy a resource in Azure:

Deploy CosmosDB

After deploying CosmosDB, you need to create one database named chat and one collection named messages as shown below

DB & Collection

Get the Connection string from the Keys menu in Azure as we are going to need it later:

CosmosDB Connection string

Backend

Open the solution from src/backend/KMCraiova2018.sln with Visual Studio 2017. Edit local.settings.json and replace the SignalR connection string & CosmosDB connection string that you got above. Run the project (CTRL+F5). The first run can be slow if you don't have the azure sdk tools.

Frontend

Run the following commands from a terminal opened inside src/frontend directory:

npm install
npm start