GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gustavohdab/notifications-microservice: This is an notification microservice based in Microservice Architecture with NestJS

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
prisma
prisma
 
 
src
src
 
 
test
test
 
 
.env
.env
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
LEARN.md
LEARN.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
jest.config.ts
jest.config.ts
 
 
nest-cli.json
nest-cli.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.build.json
tsconfig.build.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

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

About

This is an notification microservice based in Microservice Architecture with NestJS

Topics

backendcommunityexchangeeducativegithubgithub-campus-expertskafka-producerlearnmicroservices-architecturenestjsnodejsprismastudent-vscodetypescript

Resources

Readme
MIT license
Activity

Stars

7 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.