1.0.1 • Published 6 years ago

notification-vg v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Notification

This package can be used to integrate notifcations Node APP. It uses socket connection for notifcation integration with Client side and Rabbit MQ for retriveing notifications. It will start APP server on port 1337 by deafult.

Input

  1. Config - Sample Value is below
  2. Expresss APP - for v1.0.0 it should be null
 {
  "DB": "mongodb://username:password@IP:PORT/DB Name",
  "CREDENTIALS" : {
    "hostname": "RABBIT MQ IP ADDRESS",
    "port": "RABBIT MQ Server PORT #",
    "username": " ##########",
    "password": "#########"
},
"MESSAGING_CONFIGS": {
    "EXCHANGES":{
            "NOTIFICATION_MANAGEMENT" : "notification-management"
    },
    "ROUTING_KEYS": {
            "NOTIFICATION_LOGS": "notificatios.inapp.logs"
    },
    "QUEUES":{
            "NOTIFICATION_LOGS": "notifications"
    },
    "BINDING_KEYS": {
            "NOTIFICATION_LOGS":"*.notification.*"
    }
}
};

Installation

 npm i notification

Usage

const notify = require("notification");
notify.initNotification(config, null);