Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.18 KB

README.md

File metadata and controls

66 lines (42 loc) · 1.18 KB

Notifications API

The Notification Manager API for creating and scheduling new notifications

This an component of Notifications Manager project that centralizes receiving requests for sending notifications in the Inbound Layer, for N services that want to send to N different channels. When ready to be sent, the notification is queued to be sent through providers.

See the main project page for details and other components.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Using Docker

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

docker network create notifications-net

Start the API containers by running the following commands

docker-compose up

API Documentation (Swagger)

Hit /docs to see API documentation

http://localhost:3000/docs

Swagger

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Tests