Giter Site home page Giter Site logo

sudokmaar / aeroverve-api-gateway Goto Github PK

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

The AeroVerve API Gateway acts as an entry point for all incoming requests to the AeroVerve flight booking system. It routes requests to the appropriate microservices and provides a unified interface for interacting with the system's functionalities.

Home Page: https://aeroverve-api-gateway.onrender.com/

JavaScript 100.00%
abhishek abhishek-kmaar abhishek-kumar aeroverve api-gateway api-gateway-endpoint expressjs kmaar kmaar-miscellaneous-studio kumar

aeroverve-api-gateway's Introduction

AeroVerve - API Gateway

Welcome to the AeroVerve API Gateway! This repository serves as the API gateway for routing and proxying requests to various microservices in the AeroVerve flight booking system.

Table of Contents

Introduction

The AeroVerve API Gateway acts as an entry point for all incoming requests to the AeroVerve flight booking system. It routes requests to the appropriate microservices and provides a unified interface for interacting with the system's functionalities.

Environment Variables

Before you start using the AeroVerve API Gateway, make sure you have the following environment variables configured:

  • PORT: The port number on which the API gateway will run (e.g., 4005).
  • SALT_ROUNDS: The number of salt rounds for password hashing (e.g., 20).
  • JWT_EXPIRY: JWT token expiry time in seconds (e.g., 86400 for 24 hours).
  • JWT_SECRET: Secret key used for JWT token generation and validation.
  • FLIGHT_SERVICE: URL of the flight service microservice API.
  • BOOKING_SERVICE: URL of the booking service microservice API.
  • AUTH_SERVICE: URL of the authentication service microservice API.
  • REMINDER_SERVICE: URL of the reminder service microservice API.

Getting Started

Prerequisites

Before you begin, ensure you have the following installed on your system:

  • Node.js
  • npm (Node Package Manager)

Installation

  1. Clone this repository:

    git clone https://github.com/SudoKMaar/aeroverve-api-gateway.git
  2. Navigate to the project directory:

    cd aeroverve-api-gateway
  3. Install dependencies:

    npm install
  4. Start the API gateway server:

    npm start

API Proxying

The AeroVerve API Gateway forwards incoming requests to various microservices based on predefined routes. Here's how it works:

  • /flightsService: Routes requests to the flight service microservice.
  • /bookingService: Routes requests to the booking service microservice.
  • /authService: Routes requests to the authentication service microservice.
  • /reminderService: Routes requests to the reminder service microservice.
  • /api: Routes specific to your project.

For more information on the available API routes and how they map to microservices, refer to the respective microservices' documentation.

Configuration

Configuration settings for the project can be found in the config directory. Update the necessary configuration files to match your environment.

Contributing

Contributions are welcome! If you'd like to contribute to the AeroVerve API Gateway, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature: git checkout -b feature/YourFeature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin feature/YourFeature
  5. Open a pull request.

License

AeroVerve API Gateway is open-source software licensed under the MIT License.


AeroVerve - Elevating Flight Booking Experiences

aeroverve-api-gateway'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.