Skip to content

Files

Latest commit

77539e3 · Feb 24, 2021

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021
Feb 24, 2021

Azure Functions API

This project is an Azure Functions app, that responds to GET, POST, PUT, and DELETE endpoints for products.

Prerequisites

Getting Started

  1. Create a repository from this template repository https://github.com/MicrosoftDocs/mslearn-staticwebapp/generate

  2. Enter the name of your new repository as mslearn-staticwebapp

  3. Clone your new repository

    git clone https://github.com/your-github-organization/mslearn-staticwebapp
    cd mslearn-staticwebapp/api
  4. Create the file api/local.setting.json and modify its contents as follows:

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "",
    "FUNCTIONS_WORKER_RUNTIME": "node"
  },
  "Host": {
    "CORS": "http://localhost:3000,http://localhost:4200,http://localhost:5000,http://localhost:8080"
  }
}
  1. Run the app

    npm start

Resources

Debugging Resources