Giter VIP home page Giter VIP logo

booklog's Introduction

Vanilla JavaScript App

Azure Static Web Apps allows you to easily build JavaScript apps in minutes. Use this repo with the quickstart to build and customize a new static site.

This repo is used as a starter for a very basic HTML web application using no front-end frameworks.

Azure Static Web App CLI
npm install -g @azure/static-web-apps-cli

Azure Functions Core Tools
npm i -g azure-functions-core-tools@4 --unsafe-perm true

Adding an API that uses Table Storage

Create the function API
func new api

Add Table Storage support to the function
func extensions install

In the extensions.csproj file we need to add the following line to the ItemGroup list:
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.4" />

We need to run func extensions install again to install any dependencies for this particular extension.

Learned that built-in API's for static web apps do not support managed service identity, which is desired to integrate with Table Storage. With the built-in API's for static web apps, could not find a way to not have to embed the storage account key into the local.settings.json file.

Provisioned a F1 tier function app and enabled managed service identity. Then went to the storage account and granted access to the new function app's managed service identity with a Table Storage Contributor role (read, update, delete).

booklog's People

Contributors

bcropper-chl avatar brennanc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.