Giter Site home page Giter Site logo

sudokmaar / aeroverve-reminder-service Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 48 KB

This microservice handles email notifications and reminders for flight bookings within the larger AeroVerve. It uses an MVC (Model-View-Controller) architecture and integrates with a message broker for asynchronous communication.

Home Page: https://aeroverve-reminder-service.onrender.com/

JavaScript 100.00%
abhishek abhishek-kmaar abhishek-kumar aeroverve expressjs kmaar kmaar-miscellaneous-studio kumar mvc-architecture nodejs

aeroverve-reminder-service's Introduction

AeroVerve - Reminder Microservice

Welcome to the Reminder Microservice of the AeroVerve. This microservice handles email notifications and reminders for flight bookings within the larger AeroVerve. It uses an MVC (Model-View-Controller) architecture and integrates with a message broker for asynchronous communication.

Table of Contents

Introduction

The Reminder Microservice is a crucial part of the AeroVerve, responsible for managing email notifications and reminders for flight bookings. It interacts with Nodemailer for sending emails, Sequelize for database operations, and a message broker (like RabbitMQ) for communication with other microservices.

Features

  • Send email reminders for flight bookings.
  • Utilize Nodemailer for email sending functionality.
  • Integrate with a message broker for asynchronous communication.
  • Utilize Sequelize for database operations related to email reminders.

Installation

  1. Clone the repository:

    git clone https://github.com/SudoKMaar/aeroverve-reminder-service.git
    cd aeroverve-reminder-service
  2. Install dependencies:

    npm install

Configuration

  1. Configure environment variables:

    Create a .env file in the root directory and set the required values:

    PORT=4003
    EMAIL_ID=[email protected]
    EMAIL_PASS=your_email_app_password
    MESSAGE_BROKER_URL=rabbitmq://localhost
    EXCHANGE_NAME=booking_exchange
    REMINDER_BINDING_KEY=booking_reminder
  2. Update config/config.json with your database settings.

Usage

  1. Start the microservice:

    npm start
  2. Access the microservice's functionality via appropriate routes.

API Endpoints

  • POST /api/v1/tickets: Create a new email reminder for a flight booking.

Scheduled Jobs

The microservice employs scheduled jobs to manage pending email notifications. The jobs run at intervals to check for pending emails and send them accordingly.

Message Queue

The microservice uses a message broker (e.g., RabbitMQ) to communicate asynchronously with other microservices. It subscribes to relevant events and publishes messages when required.

Contributing

Contributions are welcome! Feel free to open issues or pull requests related to the Reminder Microservice.

License

This project is licensed under the MIT License.


AeroVerve - Elevating Flight Booking Experiences

aeroverve-reminder-service's People

Contributors

sudokmaar avatar

Watchers

 avatar

Forkers

kmstudio44

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.