Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manekinekko/nest-azure-function-example
Azure Functions integration with NestJS
https://github.com/manekinekko/nest-azure-function-example
azure azure-functions cloud nestjs
Last synced: 12 days ago
JSON representation
Azure Functions integration with NestJS
- Host: GitHub
- URL: https://github.com/manekinekko/nest-azure-function-example
- Owner: manekinekko
- Created: 2020-04-09T12:13:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T02:00:24.000Z (almost 2 years ago)
- Last Synced: 2024-12-20T01:44:39.302Z (26 days ago)
- Topics: azure, azure-functions, cloud, nestjs
- Language: TypeScript
- Homepage: https://nest-azure-function.azurewebsites.net/api/contact
- Size: 2.08 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Azure Functions + NestJS
- Getting started:
- `nest new my-cool-app`
- `npm start`
- `curl http://localhost:3000/`
- `nest add @nestjs/azure-func-http`
- `npm run start:azure`
- `curl http://localhost:7071/api`
- `nest generate controller contact`
```
import { Controller, Get } from '@nestjs/common';
@Controller()
export class ContactController {
@Get('contact')
getContact(): string {
return 'Hello Contact';
}
}
```
- `curl http://localhost:7071/api/contact`
- deploy to Azure
- `curl https://nest-azure-function.azurewebsites.net/api/contact`
- Full tutorial: https://trilon.io/blog/deploy-nestjs-azure-functions
- Learn more: https://nitr.ooo
## Roadmap- Add `@AzureFunction()` annotation (see [@nestjs/azure-serverless](https://github.com/nestjs/azure-serverless)).