Skip to content

Fair-Technology/superadmin-online-ordering-system-backend

Repository files navigation

Azure Function App - Hello Manish

A simple Azure Function App built with TypeScript that returns "hello manish".

Features

  • TypeScript-based Azure Function
  • HTTP trigger with anonymous access
  • Returns simple text response: "hello manish"
  • GitHub Actions workflow for automatic deployment

Local Development

Prerequisites

  • Node.js 18.x or later
  • Azure Functions Core Tools 4.x
  • Azure CLI (for deployment setup)

Setup

  1. Install dependencies:

    npm install
  2. Build the project:

    npm run build
  3. Start the function locally:

    npm start
  4. Test the function:

    curl http://localhost:7071/api/HelloManish

Deployment

GitHub Actions Setup

  1. Create an Azure Function App in the Azure portal
  2. Download the publish profile from the Azure portal
  3. Add the following secrets to your GitHub repository:
    • AZURE_FUNCTIONAPP_NAME: Your Azure Function App name
    • AZURE_FUNCTIONAPP_PUBLISH_PROFILE: The content of the publish profile file

Manual Deployment

func azure functionapp publish <your-function-app-name>

Project Structure

├── .github/workflows/
│   └── deploy.yml          # GitHub Actions workflow
├── src/functions/
│   └── HelloManish.ts      # Main function implementation
├── host.json               # Function app configuration
├── local.settings.json     # Local development settings
├── package.json            # Node.js dependencies and scripts
└── tsconfig.json           # TypeScript configuration

Function Endpoint

Once deployed, the function will be available at:

https://<your-function-app-name>.azurewebsites.net/api/HelloManish

Response

The function returns a simple text response:

hello manish

About

superadmin-online-ordering-system-backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors