Service that receives many notifications, validates and processes them.
It then sends them to another service to send an email.
To have installed the following:
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
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
You can test the API at:
https://notification-service-x8n4.onrender.com
The following are the endpoints available in the API:
- POST
api/notification/sendNotification
: A notification is sent to another service.