Code Monkey home page Code Monkey logo

flights_project's Introduction

Airline/GetSetFly - Microservices-based Flight Booking System

GetSetFly is a backend project developed for managing flight bookings and notifications using a microservices architecture. It consists of several services built with Node.js, Express.js, and MySQL's Sequelize ORM. The project follows best practices for backend development, including role-based authorization, rate-limiting, and message queuing for efficient communication between services.

Services

  • Entry point for accessing all other services
  • Implements authentication and role-based authorization
  • Uses Proxy for redirecting requests/API calls to the appropriate service
  • Implements rate-limiting to prevent server overload
  • Provides information about flights, airplanes, cities, and airports
  • Supports CRUD operations for flights
  • Implements associations for tables related to flights, airplanes, cities, and airports
  • Allows users to filter flights based on various criteria including price, available seats, departure and arrival airports.
  • Leverages the power of SQL queries to efficiently filter flight data based on the provided criteria. It utilizes Sequelize ORM's query-building capabilities to construct dynamic queries and retrieve relevant flight information from the database.
  • Allows authenticated users, admins, and flight companies to book tickets
  • Publishes events to the Message Queue after successful booking
  • Prevents multiple payments from the same user using transactional queries and RabbitMQ's Pub/Sub architecture
  • Sends email notifications to customers after successful ticket bookings
  • Acts as a Subscriber to the events published by the Booking Service via message queues

Features

  • Microservices Architecture: Scalable and maintainable architecture with separate services for different functionalities.
  • Authentication and Authorization: Role-based access control for securing resources.
  • Rate Limiting: Prevents server overload by restricting the number of requests per IP address.
  • Message Queues: Efficient communication between services using RabbitMQ's Pub/Sub architecture.
  • Transactional Queries: Prevents concurrency issues during ticket booking by using transactional queries provided by MySQL.
  • Association: Utilizes associations in the database schema to represent relationships between entities.

Getting Started

To run the project locally, follow these steps:

  1. Clone the repository: git clone https://github.com/Mohitsen11/Flights_Project.git
  2. Install dependencies: npm install
  3. Configure environment variables
  4. Start each service: npm run start

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

flights_project's People

Contributors

mohitsen11 avatar

Stargazers

 avatar

Watchers

 avatar

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.