Skip to content

gauge21/gauge23

Repository files navigation

gauge23

Tools

IDE: VS Code Extensions: Teams Toolkit https://marketplace.visualstudio.com/items?itemName=TeamsDevApp.ms-teams-vscode-extension

Azure Functions https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions

Azure Core Tools https://learn.microsoft.com/en-gb/azure/azure-functions/functions-run-local?tabs=windows%2Cisolated-process%2Cnode-v4%2Cpython-v2%2Chttp-trigger%2Ccontainer-apps&pivots=programming-language-javascript

Resources

Azure Documentation https://learn.microsoft.com/en-us/azure/?product=popular

Teams App Documentation https://learn.microsoft.com/en-gb/microsoftteams/platform/mstdd-landing

Azure Function Documentation https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-typescript?pivots=nodejs-model-v3

Example Teams App Tabs using Teams Toolkit

unnamed

Gauge

The Gauge component handles the emotion gauge, submitting, and the gauge animation. The Azure Function that Gauge uses is called Output. All components are controlled using React.

Function

Two functions are being hosted on Azure called gauge-functions. Input, which takes information from the Azure database, and Output, which pushes information to the database. To call the functions, an API call using axios is used instead of jquery.

Azure

The important part about Azure is to use a consistent subscription. Currently, Subscription 1 has been used to host gauge-functions and gauge23 (gauge2023/gauge23) the database.

Next Steps

Going forward, 2 main things need to be done.

  1. SQL Tables
  2. Charts
  3. Functions
For SQL Tables, this requires a separate table that would update and store emotion values based on the date. Additionally, this would require the creation/usage of personal IDs for each user. With a randomly generated unique ID, the emotion table can be joined in SQL.

For the charts, re-rendering using useEffect and JSON conversion to create an array that can be passed through into the charts.

For functions, the ability to call an SQL script where a specific user's information can be pulled. This needs further research as finding information about using a Typescript function to pass a parameter into JSON was difficult. This would be used in accessing information for charts.

Additional Resources

If you are having Firewall Issues

  • https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure?view=azuresql#from-the-database-overview-page


  • Create Azure Database

  • https://learn.microsoft.com/en-us/azure/azure-sql/database/single-database-create-quickstart?view=azuresql&tabs=azure-portal


  • Integrate Azure SQL Database into Teams App

  • https://github.com/OfficeDev/TeamsFx/wiki/Integrate-Azure-SQL-Database-with-your-Teams-app


  • Turning our function into an API

  • https://learn.microsoft.com/en-us/azure/azure-functions/functions-openapi-definition


  • Update or Merge Records in Azure SQL using Azure Function

  • https://learn.microsoft.com/en-us/azure/stream-analytics/sql-database-upsert


  • Code Samples

  • https://learn.microsoft.com/en-us/samples/browse/?products=azure-functions&languages=typescript


  • Video that explains how Azure SQL works in an App

  • https://www.youtube.com/watch?v=4gA8Fp2lPBI&ab_channel=MicrosoftReactor


  • Integrate Azure Function with your Teams App

  • https://github.com/OfficeDev/TeamsFx/wiki/How-to-integrate-Azure-Functions-with-your-Teams-app


  • API Connection with Teams App

  • https://github.com/OfficeDev/TeamsFx/wiki/Integrate-API-Connection-with-your-Teams-app


  • Good to know Teams Apps

  • https://learn.microsoft.com/en-gb/microsoftteams/platform/get-started/get-started-overview
  • https://learn.microsoft.com/en-gb/microsoftteams/platform/toolkit/teamsfx-sdk
  • https://github.com/OfficeDev/TeamsFx/wiki/Develop-single-sign-on-experience-in-Teams
  • https://learn.microsoft.com/en-us/graph/sdks/sdks-overview


  • Azure SQL

  • https://learn.microsoft.com/en-us/azure/azure-sql/database/connect-query-portal?view=azuresql
  • https://github.com/OfficeDev/TeamsFx/wiki/Integrate-Azure-API-Management-with-your-Teams-App-and-export-the-api-to-power-app


  • Bicep

  • https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/overview?tabs=bicep


  • About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors