This is a sample project template to demonstrate how to use NestJS with Serverless Framework and Create a Rest API with using AWS Lambda. This project is using NestJS with Serverless Framework and AWS Lambda.
$ npm install
$ npm install -g serverless
# development
$ npm run start:offline
# development
$ http://localhost:3000/dev/api
# development
$ http://localhost:3000/dev/api/posts
WARNING!: Remember you have to have AWS CLI installed and configured with your AWS account, before you deploy the app. It's recommended to use an IAM user with admin access to deploy the app (with provisioning the least needed privileges).
sls deploy --aws-profile <your-aws-profile-name>
# development
$ npm run deploy-lambda
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Author - Dilusha Gonagala