Search Flights App is a web application built with React TypeScript for the front-end and Spring Boot with Java 17 and Gradle for the back-end. This application utilizes the Amadeus API to search for flights. Users can search for flights and view flight details, but booking or scheduling flights is not supported.
- NODE JS --v 22
- NPM --v 10
- Java --v 17
- Spring Boot --v 3.3.3
- Gradle --v 8.8
This project can be built using the docker-compose file. Both the front-end and back-end have their own Dockerfile. Below are the commands to build, run, and stop the application using either Podman or Docker.
To use this project, you might need:
one of this two tools on your computer. You also need to have an account in the tool you choose and the corresponding base images.
podman-compose build
or
docker-compose build
podman-compose up
or
docker-compose up
podman-compose down
or
docker-compose down
To run the app without Docker Compose, follow these steps. Make sure to start the back-end first.
The back-end of this project is a Spring Boot application built with Java 17 and Gradle and it runs on localhost at port 9090.
To construct the application, use the following command:
./gradlew build
To start the application, use the following command:
./gradlew bootRun
To run the tests for the application, use the following command:
./gradlew test
The front-end of this project is a React application written in TypeScript. It runs on localhost at port 3000.
To download the dependencies, use the following command:
npm install
To construct the application, use the following command:
npm build
To start the application, use the following command:
npm start
To run the tests for the application, use the following command:
npm test