Skip to content

devhijazi/notification-service

Repository files navigation

Notification Service

Microsserivço de notificação

Overview

  • Create Notification
  • Read Notification
  • Unread Notification
  • Cancel Notification
  • Count Notification

Tecnologies

  • Nest.js
  • Jest
  • Prisma
  • SQLite

Features - Tecnology

  • Docker
  • Apache Kafka
  • Artillery
  • Swagger

Features - Database

  • PostgresSQL

Instalation

First we need install all dependencies, to make this open the terminal and run:

$ yarn

Now we need create the prisma database, to do that run:

$ npx prisma migrate database

After, run the command to open prisma studio if you want

$ yarn prisma studio

Now you can run the micro-service and use him

$ yarn start:dev

Endpoints

  • POST: /notifications (Create)
  • PATCH: /notifications/:id/cancel (Cancel)
  • PATCH: /notifications/:id/read (Read)
  • PATCH: /notifications/:id/unread (Unread)
  • GET: /notifications/from/:recipientId/ (List)
  • GET: /notifications/count/from/:id/ (Count)

Coverage Results

cov

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published