Skip to content

amadeus4dev-examples/amadeus_java_flight_api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome!

This app is an example of how to use the Amadeus Flight APIs to find and book a flight! The applciation uses a Spring backend, and a React frontend.

To see how the app was built, read Part One here, and Part Two here.

Requirements

You'll need:

  • A text editor or IDE
  • JDK 1.8 or later
  • Maven 3.2+
  • A recent version of NPM and Node.JS

API Access:

  • You'll also need an API key and secret from Amadeus. Get them here.

Installation

  1. Clone this repo, or if you only want the backend clone the backend only branch.
  2. Install the Maven depenencies by running mvn clean install in the base directory (or use your IDE!).
  3. Install the NPM dependencies by running npm install in the src/main/ui/ directory.
  4. Add your API key and secret to the src/main/java/com/app/flight/AmadeusConnect.java file.

Running the App

  1. Run the back end Java app on port 8080 from your IDE. You can also run the app directly by using ./mvnw spring-boot:run in the home directory.
  2. Run the front end application on port 3000 by running npm start in the src/main/ui/ directory.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.9%
  • Java 38.0%
  • HTML 1.1%