The Search Flight Application is a full-stack project developed to search flights using Amadeus API.
-
Frontend:
- React (TypeScript)
- Axios (for API calls)
- CSS for basic styling
-
Backend:
- Spring Boot (Java)
- Gradle (for dependency management)
- Amadeus API
- Search flights by origin, destination, departure and arrival date.
- Sort the results by price, duration or both.
- See the details of the flights by click in them.
Make sure you have the following installed:
- Java (JDK 11 or higher): Download and install Java
- Gradle (8.8): Download and install Gradle
git clone [https://github.com/MaferRod/flight-app.git)
cd todo-app
Navigate to the backend directory:
cd backend
- Build the proyect
./gradlew build
- Run the Spring Boot backend:
The backend will start at http://localhost:8080.
./gradlew bootRun
Navigate to the frontend directoty
cd frontend
- Install dependencies
The frontend will run at http://localhost:3000.
npm run start
Make sure to Download and install Docker
- Build and Run both services (backend and frontend):
docker-compose up --build
- In case you already build the services:
docker-compose up
- To turn down the services:
docker-compose down
- Frontend: http://localhost:3000
- Backend: http://localhost:8080