/poc-nodejs

Primary LanguageTypeScript

Testing NestJs Application

Running the app

Starts environment

docker compose -f docker/docker-compose.yaml up 

Generate Prisma Models

prisma generate

Starts NestJs Application

# development
$ npm run start-web

# watch mode
$ npm run start-web:dev

# production mode
$ npm run start-web:prod

Debug Lambdas

Install lambda-local globally

npm install -g lambda-local

Run lambda-local

lambda-local -l dist/apps/audit-function/main.js -h handler -e debug/sqs/event.json

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov