Skip to content

abraham-villalba/FlightSearch-BTII

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flight Search - Breakable Toy II

This repository includes the second Breakable Toy developed during the Spark program. It consists of a Flight Search application which uses the following stack:

  • Front-end: React, Redux and Typescript.
  • Back-end: Spring Boot and Java.

Description

The second breakable toy consists of a fullstack flight search application that allows users to search flights offers to travel to their desired destinations. The application accomplish this by utilizing the Amadeus API.

Setup

To set up this project on your local machine follow this instructions after cloning the repository.

Note: To run this project on your local machine you need to have Docker installed as well as a valid Amadeus Developer account.

  1. In order to run this project, you need to create a .env file inside the backend/ directory at the same level as its corresponding Dockerfile including the following structure with your Amadeus account information. You can find more information about the required amadeus fields here
    AMADEUS_CLIENT_ID=YOUR_AMADEUS_API_KEY
    AMADEUS_CLIENT_SECRET=YOUR_AMADEUS_API_SECRET
    AMADEUS_AUTH_ENDPOINT=AMADEUS_AUTH_ENDPOINT
    
  2. Once you have your .env file in place, make sure you're on the root directory of the directory and execute the following docker command to build the required images and start both the client and the server service.

    Make sure you have docker running before executing this command

    docker-compose up --build 
    
  3. To access the web page, open your browser and go to http://localhost:8080/.
  4. If you wish to interact with the server API directly, you can do so by using the http://localhost:9090/.
  5. To shutdown the services, use the following command.
    docker-compose down
    

About

Second breakable toy consisting of a Flight Search application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages