Skip to content

System the notification with kafka, microservices separations in layers using Port and Adapters and tests use Jest and ORM prisma

Notifications You must be signed in to change notification settings

jonataserpa/backend-nestjs-kafka-test

Repository files navigation

Description

Project Notification API create with Node.js:

  • Framework: Nest.js,
  • ORM: Prisma
  • Bd: Mysql
  • Test unit - (Jest)
  • Desgin patterns
    • Mapper
    • Factory
    • DTO
  • Documentation - Swagger API

Software architecture:

  • Ports & Adapters (Hexagonal Architecture)
    • Application
      • Use cases
    • Infra
      • Http - (Controllers)
      • Database - (Orm - Prisma)
      • Dtos - (Validators)
      • Messaging - (Kafka)
    • Helpers
  • Solid

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Create migrations prisma

# migrations
$ npx prisma migrate dev
# studio
$ npx prisma studio

About

System the notification with kafka, microservices separations in layers using Port and Adapters and tests use Jest and ORM prisma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published