Satak / az-function-app-ts

Azure Function App with TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Application for Azure Function

Demo Application

Prerequisites

How to

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:

  1. Initialize Function App

First Create function app folder, cd into it and initialize function app project

func init --typescript
  1. Create a hello-world function
func new --name hello-world --template "HTTP trigger" --authlevel "anonymous"
  1. Install node modules and start the dev server
npm install
npm start
  1. Test the dev server
curl http://localhost:7071/api/hello-world?name=Terraform
  1. Publish

To publish your local code to a function app in Azure, use the publish command:

func azure functionapp publish <FunctionAppName>

About

Azure Function App with TypeScript


Languages

Language:TypeScript 100.0%