@x2d/azure-func-http
v0.11.1
Published
NestJS Azure Functions HTTP adapter - Community-maintained fork by X2D. Enables NestJS applications to run seamlessly on Azure Functions with both Express-compatible and native routing options.
Downloads
37
Readme
Description
Azure Functions HTTP module for Nest.
Maintainership
This package is currently maintained by X2D as a community fork. We are committed to keeping this package updated, secure, and functional for the NestJS and Azure Functions community.
Original Work
This package was originally created and authored by Kamil Myśliwiec, the creator of NestJS. We maintain this fork with deep respect for the original work and continue to build upon the solid foundation provided.
Installation
Using the Nest CLI:
$ nest add @x2d/azure-func-httpExample output:
✔ Installation in progress... ☕
CREATE /.funcignore (66 bytes)
CREATE /host.json (23 bytes)
CREATE /local.settings.json (116 bytes)
CREATE /proxies.json (72 bytes)
CREATE /main/function.json (294 bytes)
CREATE /main/index.ts (287 bytes)
CREATE /main/sample.dat (23 bytes)
CREATE /src/main.azure.ts (321 bytes)
UPDATE /package.json (1827 bytes)Tutorial
You can read more about this integration here.
Native routing
If you don't need the compatibility with express library, you can use a native routing instead:
import { AzureHttpRouter } from '@x2d/azure-func-http';
const app = await NestFactory.create(AppModule, new AzureHttpRouter());AzureHttpRouter is exported from @x2d/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:
$ nest add @x2d/azure-func-http --rootDir appOther available flags:
rootModuleFileName- the name of the root module file, default:app.modulerootModuleClassName- the name of the root module class, default:AppModuleskipInstall- 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
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
License
Nest is MIT licensed.
