Git Product home page Git Product logo

notifications-microservice's Introduction

Notification Microservice-based on NestJS

About the project

This is an notification microservice based Microservice Architecture with NestJS. It uses NodeJS, so you need to have NodeJS installed on your machine. Also used and recommend Insomnia to test the API endpoints.

Some information about the project

  • Project uses NestJS as framework
  • Project uses NodeJS as runtime environment
  • Project uses TypeScript as language
  • Project uses Prisma as ORM
  • Project uses KafkaJS as consumer and producer

Some of the features

  • Create a notification
  • Read a notification
  • Unread a notification
  • Cancel a notification
  • Get all notifications from recipient
  • Count all notifications from recipient

OBS: The project was for knowledge consolidation, so some features may not be available. Also, some features may be changed in the future. Feel free to contribute to the project or use it as a base for your own project.

How to run and test the project

  • Clone this repository
  • Run npm install to install all dependencies
  • Run npm run start:dev to start the server in development mode
  • Run npm run test to run the tests / npm run test:watch to run the tests in watch mode
  • If you want to run the project in production mode, run npm run build and then npm run start:prod
  • Use Insomnia or another one that you usually do, to test the API endpoints
  • Use KafkaJS to test the message broker

KafkaJS-Producer

  • I created a new folder just typed npm init and then npm install kafkajs and then I created a file called producer.js. In this file I created a producer following the documentation of KafkaJS. Then just run node producer.js and you can see the messages in the terminal where the project is running like an Consumer.

Made with โ™ฅ by Gustavo Batista ๐Ÿ‘‹ LinkedIn e GitHub

notifications-microservice's People

Contributors

gustavohdab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.