B12 Assignment Solutions
First problem
- There are 2 separate SQL query blocks for MySQL and SQLite3 in the file named 'first_task.sql'.
Second problem
- To run a script you need to have installed python (at least version 3.6) on your computer
- Change direction to main directory with flight-optimizer file
- Create new environment: python3 -m venv env
- Activate new environment: source env/bin/activate
- Install necessary python packages: pip install -r requirements.txt
- To be able to run bash script in terminal you need to change permissions for a script file: chmod +x flight-optimizer
- To get the best destination and price per kilometer in USD run command: ./flight-optimizer --from Stambul --to Madrid Lisbon Roma .