Demo Application
If you want to make a similar app, then follow all the steps, but if you clone this repo and just want to run and deploy follow steps starting from 3
:
- Initialize Function App
First Create function app folder, cd into it and initialize function app project
func init --typescript
- Create a
hello-world
function
func new --name hello-world --template "HTTP trigger" --authlevel "anonymous"
- Install node modules and start the dev server
npm install
npm start
- Test the dev server
curl http://localhost:7071/api/hello-world?name=Terraform
- Publish
To publish your local code to a function app in Azure, use the publish command:
func azure functionapp publish <FunctionAppName>