Notification Engine is a service which will send notification to its subscribers. It will manages templates and subscriptions, and when an event is triggered the required set of notifications will to be the recipients.
- Node.js
- RabbitMQ
- MongoDB
- Clone this repository.
- Do an
npm install - Update config file in config folder with the correct set of values or provide them as environemnt variables to node.
- Start MongoDB and RabbitMQ
- Run the service using
node app.js
- PORT: The port at which Notification Engine should start. The default value is 10010
- MONGO_URL: The mongoDB connection string. The default value is mongodb://localhost/notificationEngine
- RABBIT_URL: The RabbitMQ connection string. The default value is amqp://localhost
- SMTP_EMAIL && SMTP_PASSWD: The email id and password to be used to send out email notification.
- SMS_CONN_STRING, SMS_SECRET, SMS_KE: SMS connection details.
- SERVICES: If this is set, then all the support services are started when the notification engine starts.
- LOG_LEVEL: log4j log level. If not set default value will be info.
SMTP_EMAIL=johndoe@gmail.com SMTP_PASSWD=******* SMS_CONN_STRING=http://mysmsgateway.com/sendsms SMS_SECRET=thisisansmssecret SMS_KEY=thisisansmskey SERVICES=true nodemon app.js
Supports two optional arguments:
-gGenerates UI components-hHelp text