/notification-service

This service receives a notification in JSON format and forwards it to another service.

Primary LanguageTypeScriptMIT LicenseMIT

Notification Service Backend

Service that receives many notifications, validates and processes them. It then sends them to another service to send an email.

Prerequisites

To have installed the following:

🔑 Environment Variables

To run this project, you will need to add the following environment variables to your .env file PORT

CORS_ORIGIN Domain in which the request is made

API_KEY

API_URL URL where you want to send the notifications

DOMAIN_ORIGIN My current domain

PORT

Getting Started

🏃 Run Locally

Clone the project

  git clone https://github.com/BryanFloresAvila/notification-service.git

Go to the project directory

  cd notification-service

Install dependencies

  npm install

Start the server

  npm start

Usage

You can test the API at:

https://notification-service-x8n4.onrender.com

Endpoints

The following are the endpoints available in the API:

  • POST api/notification/sendNotification: A notification is sent to another service.