Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

hussainpithawala/TravelTime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TravelTime

This repository houses examples related to development of a Flight & Hotel search/booking engine using the development sandboxes available from popular GDS's Amadeus and Sabre.

Building the application

  1. Clone the repository in your preferred location.

  2. Change the directory to TravelTime/src/main/resources/static

  3. run

    1. $> npm install
    2. $> npm run build
    3. $> npx webpack --config webpack.config.js
  4. cd to main project directory i.e. TravelTime

  5. create a property file src/main/resources/supplier.properties

    1. Add following properties to it
      1. amadeus.url=https://api.sandbox.amadeus.com/v1.2
      2. amadeus.api.key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      3. sabre.url=https://developer.sabre.com/io-docs/call-api
      4. sabre.clientId=XXXXXXXXXX
      5. sabre.clientSecret=XXXXXX
    2. amadeus.api.key can be obtained by registering at Amadeus for a developer account with Amadeus at https://sandbox.amadeus.com
    3. sabre.clientId and sabre.clientSecret could be obtained by registering for a developer account with Sabre at https://developer.sabre.com/
  6. Have a MySQL Host up and running with a Schema traveltime Change the following properties in application.properties to use the schema

    1. spring.datasource.url=jdbc:mysql://localhost:3306/traveltime
    2. spring.datasource.username=traveltime
    3. spring.datasource.password=traveltime
  7. Run $> mvn spring-boot:run to run the application.

  8. Following is the index page of the application

  9. Following is the search results page for hotel search by airport location

  10. Following is the hotel-details page which includes room details

  1. Following is the flight result(s) page indicating available flights from 'LHR' to 'CDG' with return options on 31st March 2018 (onward) and 4th April 2018 (return)

  1. Following is the flight detail section

  1. On clicking the 'Outbound Details' one can view the details about various legs of the outbound option.

  2. On clicking the 'Inbound Details' one can view the details of about various legs of the inbound option.

  3. For one way flights only open-jaw flights (outbound) would be shown.

REST APIs covered by the application

  1. Amadeus - Flights
    1. Low-fare-search
    2. Extensive-search
    3. Inspiration-search
    4. Search Airport by location
    5. Affiliate-Search
    6. Nearest Relevant Airport
    7. Auto suggest Airport
  2. Amadeus - Hotels
    1. Search Hotels by Airport Code
  3. Sabre - Flights
    1. Shop Insta Flights

The application is an effort to illustrate how the aggregation of results from various suppliers is done using simple search parameters. The intent of this internet search & booking engine is to let development teams explore various APIs made available by GDS's which could be used to provide quality search/booking experience to users.

About

Demo repository for an online travel agency

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published