Very simple serverless "Hello world" type example using NestJS, Serverless framework and AWS lambda function
yarn installDefault Nest server in watch mode:
yarn run start:devIf all goes well the app should be available on 3000 port:
Serverless offline plugin:
yarn run start:slsTesting the app with serverless invoke local:
yarn run test:slsPackaging and deploying the app:
yarn run deployOnly package:
yarn run package- app.ts
- main.ts
- lambda.ts
When running the app locally, swagger documentation is available under /docs path: