This is a normal NestJS project. If you are new to NestJS, be familiar with the concepts of annotation, injection, interceptors, filters, and swagger.
- Initializes AppLogger as a Winston logging service
- Set global prefix
- Initializes Swagger documents
- Initializes global pipes(validation and trim)
- Initializes global filters(exception filter for logging errors)
- Initializes global interceptors(response interceptor)
Swagger documentation is provided only for the local runtime but not for the lambda.
NestJS serves the app on your local environment but Lambda does in dev, test, and prod environment.
If TEAMS_ALERTS_WEBHOOK_URL is defined and an exception occurs, the error message will be sent to the Teams channel.
Refer to How to run the apps.
Refer to Tests
For local execution (both application and test) include env.js
at the beginning of script execution or entry-point
Nest is MIT licensed.