notification-vg
v1.0.1
Published
Notification APP
Downloads
11
Keywords
Readme
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
- Config - Sample Value is below
- 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);