jsmarketingrus / sunrise-standup

Static Web App for Sunrise Standup

Home Page:https://www.sunrisestandup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sunrise Standup!!

Sunrise Standup is a status update application built as a demo for Build 2020. It allows users to submit a 15 second status update video clip and displays those clips in order by date in a feed. The user's location is recorded and displayed on an interactive map.

sunrise-standup-demo

This application levarages several Azure resources...

  1. Azure Storage for video uploads
  2. Cognitive Services for video transcription
  3. Azure Maps for the interactive map control
  4. Video Indexer to pull thumbnails off of videos
  5. Logic Apps to create a thumbnail when a video is uploaded

Setup Azure Resources

  1. Create a Video Index account and go to your profile page. here, Make note of your primary key.

    video indexer key screen

  2. Get a Github Personal API key and make note of it. You'll need read:user permissions.

  3. Click the button below which will setup all of the required resources in Azure. You'll need to provide the video indexer key from step 1. Make sure you change the value of "unique-prefix" to something unique.

    Deploy to Azure

    custom deployment screen in Azure Portal

  4. Once finished, the following resources will be deployed...

    deployed resources deiplayed in Azure Portal

  5. Go to the Resource Group and under "Settings", select "Deployments". Select the "Microsoft.Template" item and then select "Outputs" to display the keys needed for the Sunrise Standup. You'll be using these keys when you setup the application.

    outputs from resource group

Setup application

  1. Clone (or Fork and Clone) this repository

  2. Rename the "api/local.settings.json.rename" to "api/local.settings.json".

The "local.settings.json" file holds all of the keys that the application needs. You'll need to copy these keys in from the corresponding template output in the portal.

local.settings.json setting Template output
STORAGE_ACCOUNT storage_account
STORAGE_KEY storage_key
STORAGE_CONNECTION_STRING storage_connection_string
MAP_KEY map_key
AI_API_KEY ai_api_key
GITHUB_API_KEY Github API key

Running the application locally

This project can be run anywhere, but VS Code is required for local debugging.

  1. Open the application with VS Code.

Running the frontend

  1. Install frontend dependencies...

    npm install
  2. Run the frontend project in the browser (automatically opens a browser window).

    npm start

Running the API

  1. From VS Code, press F5

Deploying the App to Static Web Apps

  1. Create a new Static Web App.

  2. Select the Github repo for this project from the Azure Web Apps create screen.

For more information on Static Web Apps, check out the Static Web Apps documentation.

About

Static Web App for Sunrise Standup

https://www.sunrisestandup.com


Languages

Language:JavaScript 58.3%Language:HTML 20.2%Language:TypeScript 15.1%Language:CSS 4.1%Language:SCSS 1.0%Language:Dockerfile 1.0%Language:Shell 0.2%