Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 3.42 KB

File metadata and controls

58 lines (45 loc) · 3.42 KB
page_type languages products name description
sample
javascript
azure
azure-computer-vision
azure-app-service-static
vs-code
JavaScript end-to-end client analyze image with Cognitive Services
Locally build and deploy a client application to an Azure Static Web App with a GitHub action, analyze image with Cognitive Services Computer Vision.

Build and deploy a Static Web app to Azure

In this tutorial, locally build and deploy a React/TypeScript client application to an Azure Static Web App with a GitHub action.

Features

The React (create-react-app) provides the following functionality:

  • Display message if Azure key and endpoint for Cognitive Services Computer Vision isn't found
  • Allows you to analyze an image with Cognitive Services Computer Vision
    • Enter a public image URL or analyze image from collection
    • When analysis is complete
      • Display image
      • Display Computer Vision JSON results

The GitHub action starts when a push to a specific branch happens:

  • Inserts GitHub secrets for Computer Vision key and endpoint into build
  • Builds the React (create-react-app) client
  • Moves the resulting files to your Azure Static Web app resource

Prerequisites