All Projects → joescars → TugOfWar-FunctionsDemo

joescars / TugOfWar-FunctionsDemo

Licence: MIT license
Azure Functions Interactive Tug of War Game. Great demo project to learn Azure Functions and how to use proxies.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
powershell
5483 projects
CSS
56736 projects

Projects that are alternatives of or similar to TugOfWar-FunctionsDemo

ci-skip
CI skip comment
Stars: ✭ 35 (-20.45%)
Mutual labels:  azure-pipelines
azure-developer-college
Repository for the Azure Developer College Workshop
Stars: ✭ 16 (-63.64%)
Mutual labels:  azure-functions
UrlShortener
A Url Shortener service build with Azure Functions in less than 100 lines of code
Stars: ✭ 18 (-59.09%)
Mutual labels:  azure-functions
entref-spring-boot
A RESTful DAL (Database Abstraction Layer) reference implementation written using Spring.
Stars: ✭ 19 (-56.82%)
Mutual labels:  azure-pipelines
AzureFunctionExtensions
Set of Azure Function Extensions: Redis output and IDatabase resolving, HTTP calls, etc.
Stars: ✭ 32 (-27.27%)
Mutual labels:  azure-functions
azure-sql-db-prisma
Full-Stack End-To-End implementation - both with REST and GraphQL support - with Azure SQL and Prisma.io of the well-known To-do list sample.
Stars: ✭ 35 (-20.45%)
Mutual labels:  azure-functions
pulumi-az-pipelines-task
Azure Pipelines task extension for running Pulumi apps.
Stars: ✭ 19 (-56.82%)
Mutual labels:  azure-pipelines
CADLab Loyalty
This is a end to end Loyalty business scenario
Stars: ✭ 21 (-52.27%)
Mutual labels:  azure-functions
AspNetCore.Client
On Build client generator for asp.net core projects
Stars: ✭ 14 (-68.18%)
Mutual labels:  azure-functions
ci playground
Playground for Cloud CI development for C++
Stars: ✭ 23 (-47.73%)
Mutual labels:  azure-pipelines
AzureFunctionsSecurity
Azure Functions Security
Stars: ✭ 23 (-47.73%)
Mutual labels:  azure-functions
az-func-as-a-graph
Visualizes your Azure Functions project in form of a graph
Stars: ✭ 40 (-9.09%)
Mutual labels:  azure-functions
jmeter-aci-terraform
Scalable cloud load/stress testing pipeline solution with Apache JMeter and Terraform to dynamically provision and destroy the required infrastructure on Azure.
Stars: ✭ 114 (+159.09%)
Mutual labels:  azure-pipelines
Scavenger
A virtual "scavenger hunt" game for mobile devices using Unity, Azure, and PlayFab
Stars: ✭ 19 (-56.82%)
Mutual labels:  azure-functions
react-ssr-advanced-seed
🔮 React SSR Advanced Seed (Typescript + nestJS + React SSR + React Native + Docker)
Stars: ✭ 76 (+72.73%)
Mutual labels:  azure-pipelines
azure-functions-language-worker-protobuf
Protobuf definitions for the gRPC connections between the script host and the language workers
Stars: ✭ 27 (-38.64%)
Mutual labels:  azure-functions
Azure-Functions-KeyVault-Binding
A binding for Azure Functions to make working with Azure KeyVault easier.
Stars: ✭ 26 (-40.91%)
Mutual labels:  azure-functions
Serverless-File-Validation
Using Azure Serverless products to perform file validation on a per-batch basis
Stars: ✭ 21 (-52.27%)
Mutual labels:  azure-functions
azure-devops-terraform
Recipe to deploy Azure Infrastructure with Terraform via Azure DevOps
Stars: ✭ 18 (-59.09%)
Mutual labels:  azure-pipelines
serverless-full-stack-apps-azure-sql
Full stack solution using Javascript, Azure Static Web Apps, Azure Function, Azure SQL Database and a microservice architecture to monitor in real-time public transportation data, create a geofence and send notification when geofence is activated
Stars: ✭ 72 (+63.64%)
Mutual labels:  azure-functions

Tug of War with Azure Functions (nodeJs)

Build Status

Play a live demo here: https://aka.ms/aztugofwar.

C# Class Library version here: https://github.com/joescars/TugOfWar-CSharp.

About the Demo

This simple demo game is used to teach basic concepts around building Azure Functions with node.js.

It also provides a fun an interactive way to show Azure Functions in use.

The following concepts are covered through this demo:

  • Function Triggers
  • Function Input & Output Bindings
  • Reverse Proxies
  • Serving Static Content via Proxy
  • Debugging using VS Code
  • Application Insights

Setup Instructions

Deploy to Azure

How to Play

  • From the home page (index.html) the presenter creates two Teams. For example. Team A and Team B.

  • Upon submitting these teams a new "Game" is created.

  • The presenter then instructions players to visit play.html. They will see two buttons, one for Team A and one for Team B.

    • Note; in the image below the url is specifically to my personal demo of the game. You will need to replace that url with your own when deploying
  • The goal is to have 1/2 the room hit one button and the other half the second button as fast as they can.

  • Each button press is logged and displayed in real time on the home page. When one team gets far enough ahead of the other team the Functions logo will move and eventually show a winner!

Images

Game Setup Teams are created

Player Interface Players click their team button as fast as possible

Game Animation The logo animates towards the team with more clicks

How does it work?

Behind the scenes we are using Azure Functions with Storage Queues, Table Storage and Proxies.

Architecture Diagram

Resources

Easy Deploy

Deploy to Azure

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].