Skip to content

caseymorris321/NotificationMicroservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Notifcation Microservice

Microservice that handles reminders and notifications for a to-do list application.

How to use:

  1. Make sure you have Node.js and MongoDB installed.
  2. Clone the repository.
  3. Run npm install to install dependencies.
  4. Configure the MongoDB connection URL in the .env file.
  5. Run node notification-service.js to start the server.
  6. The microservice will be running at http://localhost:3000. This can be changed in the service broker.

How it works:

The microservice uses the Molecular framework. It uses REST API for communication pipes. The microservice is responsible for creating, fetching, and deleting reminders. It also handles sending notifications to the user when a reminder is due. The microservice uses MongoDB to store reminders. It periodically checks for due reminders, and when a reminder is due, it sends a notification to the user within one hour (can be changed based on preference) of it being due (right now as a console log). A third-party service can easily be added to send reminders via email or SMS. I've added comments where preferences can be changed.

UML Diagram

Notification Microservice UML Diagram

Communication Contract

The microservice will respond with the requested data in JSON format or with appropriate status codes and error messages if any issues occur.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published