Azure Functions Interactive Tug of War Game. Great demo project to learn Azure Functions and how to use proxies.
Play a live demo here: https://aka.ms/aztugofwar.
C# Class Library version here: https://github.com/joescars/TugOfWar-CSharp.
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:
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.
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!
Teams are created
Players click their team button as fast as possible
The logo animates towards the team with more clicks
Behind the scenes we are using Azure Functions with Storage Queues, Table Storage and Proxies.