Sample project based on Nest.js framework
- modular config
- auth using aws cognito integration
- async processing with outbox pattern using sqs
- pino logger
- request correlation id
- typeorm integration
- zod validation
- helmet integration
- rest client api documentation
- tests
- swagger autogenerated docs
- terraform for aws services
$ nvm use
$ npm install
$ cp .env.default .env
# start db in docker
$ docker-compose -up -d
# 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
aws cognito-idp initiate-auth --region eu-north-1 --auth-flow USER_PASSWORD_AUTH --client-id AWS_COGNITO_CLIENT_ID --auth-parameters USERNAME=XXX,PASSWORD=YYY