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