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.
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.
- Clone this repo, or if you only want the backend clone the backend only branch.
- Install the Maven depenencies by running
mvn clean install
in the base directory (or use your IDE!). - Install the NPM dependencies by running
npm install
in thesrc/main/ui/
directory. - Add your API key and secret to the
src/main/java/com/app/flight/AmadeusConnect.java
file.
- 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. - Run the front end application on port 3000 by running
npm start
in thesrc/main/ui/
directory.