This project is an Azure Functions app, that responds to GET, POST, PUT, and DELETE endpoints for products.
Learn how to Publish an Angular, React, Svelte, or Vue JavaScript app and API with Azure Static Web Apps
-
Create a repository from this template repository https://github.com/johnpapa/shopathome/generate
-
Enter the name of your new repository as mslearn-staticwebapp
-
Clone your new repository
git clone https://github.com/your-github-organization/mslearn-staticwebapp cd mslearn-staticwebapp/api
-
Create the file
api/local.settings.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"
}
}
-
Run the app
npm start
- Azure Free Trial
- VS Code
- VS Code Extension for Node on Azure
- Azure Functions local.settings.json file