Giter Site home page Giter Site logo

mhshahzad / schiphol-flight-booking-app Goto Github PK

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

A Node.js application for retrieving flight data from Schiphol Airport and reserving flights for users.

License: MIT License

TypeScript 100.00%
api flight-booking nodejs npm postgresql reservation-system schiphol server-side typescript typescript-compiler

schiphol-flight-booking-app's Introduction

Schiphol Flight Booking App

The Schiphol Flight Booking App is a robust TypeScript-based Node.js application designed to streamline the retrieval of flight data from Schiphol Airport while offering a seamless flight reservation process for users. This project leverages TypeScript for enhanced code maintainability and Node.js for efficient server-side functionality.

Features

  • List Flights:

    • Retrieve a list of all available flights.
    • Optional filtering by specifying date and direction query parameters.
  • Reserve a Flight:

    • Reserve a seat on a specific flight.
    • Handles various responses including success, missing fields, flight not found, seat already reserved, incorrect flight direction, and existing user reservation on the same flight.
  • List Reservations:

    • Retrieve a list of all reservations made.
  • Get User Reservations:

    • Retrieve a list of reservations for a specific user.
  • Get Flight Details for a User:

    • Retrieve flight details for a specific flight requested by a user.

Prerequisites

  • Node.js and npm installed (Node.js v18.1.0 and npm v9.8.1 recommended)
  • PostgreSQL database set up
  • TypeScript compiler (tsc) installed globally (npm install -g typescript)

Installation

  1. Clone this repository: git clone https://github.com/muhammadh-s/schiphol-flight-booking-app.git
  2. Install dependencies: npm install
  3. Create a .env file in the root directory (example provided in .env.example) to configure credentials and app settings
  4. Run the following command to compile TypeScript: npm run build
  5. Start the application: npm start

Usage

Explore various API endpoints for flights, reservations, and users to maximize the capabilities of the Schiphol Flight Booking App. Detailed information is available in the API Documentation.

API Documentation

Refer to the included API Documentation file for comprehensive details on available API endpoints and their functionalities.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

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.