Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.49 KB

File metadata and controls

46 lines (27 loc) · 1.49 KB

Nest Logo

Description

This is a normal NestJS project. If you are new to NestJS, be familiar with the concepts of annotation, injection, interceptors, filters, and swagger.

Bootstrap process

  • 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.

Lambda deployment

NestJS serves the app on your local environment but Lambda does in dev, test, and prod environment.

  • main.ts - bootstrap entrypoint on local NextJS runtime
  • lambda.ts - Lambda handler

Teams alerts

If TEAMS_ALERTS_WEBHOOK_URL is defined and an exception occurs, the error message will be sent to the Teams channel.

Running the app

Refer to How to run the apps.

Test

Refer to Tests

Env Setup

For local execution (both application and test) include env.js at the beginning of script execution or entry-point

License

Nest is MIT licensed.