Skip to content

Worker responsible for consuming, processing and sending notifications through different channels

Notifications You must be signed in to change notification settings

davicedraz/notifications-service-worker

Repository files navigation

Notifications Service Worker

Worker responsible for consuming, processing and sending notifications through different channels

This an component of Notifications Manager that is an stateless instance server responsible only for consuming notification events from message queues and try to send them to the corresponding providers.

See the main project page for details and other components.

Setup & Run

This Node.js project uses typescript, which will be automatically installed as a development dependency.

Install all project dependencies, like Node.js and Npm. Then run:

npm install

Run it

npm start

Using Docker

Create a Docker network called notifications-net by running the command:

docker network create notifications-net

Start the Service Workers containers by running the following commands

docker-compose up

Test

Execute the following command to run all test suites and log mocked results:

npm test

In order to see a test coverage report, run:

 npm run test:coverage

About

Worker responsible for consuming, processing and sending notifications through different channels

Resources

Stars

Watchers

Forks