The Flight Notification Service is designed to automatically send email notifications regarding flight updates. It leverages RabbitMQ for message queuing and Nodemailer for sending emails. This ensures that the system is robust, scalable, and efficient in handling email notifications.
- Node.js
- RabbitMQ
- Nodemailer
Setup .env file and run the project with other microservices
Ensure RabbitMQ is running. You can start RabbitMQ using the following command:
rabbitmq-server
The email message should be a JSON object with the following structure:
{
"from": "mailFrom@example.com"
"to": "recipient@example.com",
"subject": "Flight Update",
"text": "Your flight has been updated."
}