Flight Search Application
This project consists on create a Flight Search Application using Springboot + Gradle for the Backend and React + Typesript for the Frontend. This application uses the amadeus API. Also, this project has to be able to run using docker compose.
- This project uses Vitejs. Vitejs is a frontend tooling for web development which allows us to create amazing web sites.
- Bootstrap. Styler that let us create amazing designs.
- Node v20.15.1
- Springboot. Springboot v3.3.2 is a tool that let us create web services such as apis.
- Gradle v8.8
- JUnit.Provides a modern foundation for developer-side testing on the JVM
- Java 21
- Docker Compose v2.29.2
- Docker (CLI) v27.1.2
- Colima. Used to run docker con mac.
How to install the project in your local:
- Open a terminal where you can to clone the project.
- Clone this repository using the following command:
git clone https://github.com/username/BreakableToyII.git
- Once you have cloned the API go to
Backend/flightchecker/src/main/java/com/javier/flightchecker/services/AccessTokenService.java
and replace
String clientId = "secret"; // Replace with the given clientId token
String clientSecret = "secret"; // Replace with the given clientSecret token
With:
String clientId = "your_amadeus_api_key"; // Replace with the given clientId token
String clientSecret = "your_amadeus_api_secret"; // Replace with the given clientSecret token
- Now, in the terminal write the following command:
docker-compose up --build
- And thats it! Now the project is running in your local!!! The frontend port is localhost:5173 and the backend port is localhost:8080