一个用于构建高效且可扩展的服务器端程序的渐进式Node.js框架

网友投稿 726 2022-10-12

一个用于构建高效且可扩展的服务器端程序的渐进式Node.js框架

一个用于构建高效且可扩展的服务器端程序的渐进式Node.js框架

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

Description

Azure Functions HTTP module for Nest.

Installation

Using the Nest CLI:

$ nest add @nestjs/azure-func-http

Example 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:

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:

$ nest add @nestjs/azure-func-http --rootDir app

Other 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śliwiecWebsite - https://nestjs.comTwitter - @nestframework

License

Nest is MIT licensed.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:trivy【3】自定义扫描策略
下一篇:WPF布局之控件随着窗口等比放大缩小,适应多分辨率满屏填充应用
相关文章

 发表评论

暂时没有评论,来抢沙发吧~