Skip to content

gustavo-bertoldi/FlightSearchCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amadeus Flight Search

Easily search for flights within a date interval to find the cheapest possible prices using Amadeus APIs.

Run with Docker

First you need to setup some environment variables so the app can function correctly. The easiest way to do so is by creating a .env file in the project's /back. This file contains your API secrets, make sure not to include in commits. You can also do so using docker's command line arguments for environment variables. See here

# Required
AMADEUS_CLIENT_ID="YOUR_CLIENT_ID"
AMADEUS_CLIENT_SECRET="YOUR_SECRET"

# Optionals
AMADEUS_ENV="ENV" # Values can be 'production' or 'test'. Default is test.
PORT=SOME_PORT # Port to which the app will listen. Default is 3000.

Once the variables are set simply run the following commands. App will be available by default on http://localhost:3000.

docker build -t "amadeus-flight-search" --name "Amadeus Flight Search"
docker run -p HOST_PORT:CONTAINER_PORT "amadeus-flight-search" #Default: docker run -p 3000:3000 "amadeus-flight-search"

Run locally

Set up your Amadeus credentials using an .env file in the /back directory or your terminal. See section Run with docker. First build the frontend running the following commands in the /front directory:

npm install
npm run build

Then start the app by running the following commands in the /back directory:

npm install
npm run serve

App will be available by default on http://localhost:3000

About

Flight search application using Amadeus Self-Service APIs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published