Skip to content

Azure Functions HTTP adapter for Nest framework (node.js) 🌥

License

Notifications You must be signed in to change notification settings

Simplifi-ED/azure-func-http

 
 

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

Description

Azure Functions HTTP module for Nest fixed for Azure Function 4.

Installation

Using the Nest CLI:

npm install @simplifi-ed/azure-func-http
nest add @simplifi-ed/azure-func-http

Example output:

✔ Installation in progress... ☕
✔ Package installation in progress... ☕
Starting library setup...
CREATE local.settings.json (172 bytes)
CREATE main/function.json (294 bytes)
CREATE main/index.ts (309 bytes)
CREATE main/sample.dat (23 bytes)
CREATE src/main.azure.ts (321 bytes)
UPDATE package.json (3101 bytes)
✔ Packages installed successfully.

Native routing

If you don't need the compatibility with express library, you can use a native routing instead:

const app = await NestFactory.create(AppModule, new AzureHttpRouter());

AzureHttpRouter is exported from @nestjs/azure-func-http. Since AzureHttpRouter doesn't use express underneath, the routing itself is much faster.

Additional options

You can pass additional flags to customize the post-install schematic. For example, if your base application directory is different than src, use --rootDir flag:

npm install @simplifi-ed/azure-func-http
nest add @simplifi-ed/azure-func-http --rootDir app

Other available flags:

  • rootModuleFileName - the name of the root module file, default: app.module
  • rootModuleClassName - the name of the root module class, default: AppModule
  • skipInstall - skip installing dependencies, default: false

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

Azure Functions HTTP adapter for Nest framework (node.js) 🌥

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 96.4%
  • JavaScript 3.6%