Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 3.34 KB

README.md

File metadata and controls

79 lines (54 loc) · 3.34 KB

Nammatham Logo

Azure Function Lightweight frameworks with DI, providing type safe function bindings

Build & Test codecov npm version npm download

Nammatham Starter

Simple starter boilerplate for running Nammatham

Description

Nammatham (นามธรรม in Thai, pronounced /naam ma tham/, means abstract in Thai) is Azure Function Nodejs Lightweight frameworks with Dependency Injection,

Compatibility with Azure Functions

Introduction

Nammatham is a framework that allows you to use Azure Functions with TypeScript and decorators. It provides pre-defined JSON binding objects and utility functions, such as httpTrigger, to make it easier to create Azure Functions.

Example:

import { AuthorizationLevel, BaseFunction, functionName, httpTrigger } from "nammatham";
import { HttpRequest } from "@azure/functions";

@functionName("GetUsers", httpTrigger(AuthorizationLevel.Anonymous, ["get"]))
export class UserFunction extends BaseFunction {

  public override execute(req: HttpRequest): void {
    const name = req.query.name;  
    this.res.send(`hello get user with ${name}`);
  }
}

Features

Getting Started

Dev

npm run dev

Build

npm run build

Documentation

Please read the full documentation in the repo

Author

  • Thada Wangthammang, Software Engineer, Thailand

Ref