I’m Feeling Lucky is a trip generator that searches for the most affordable flights and Airbnb listings for users.
This app provides information regarding cheap flight options and affordable Airbnb listings based on users entered criteria. I’m Feeling Lucky enables users to set default departure airports, search trips, save trips for later, view or delete saved trips, and view photos of the destinations. I’m Feeling Lucky is great for people who love and want to travel with affordable price. Planning trips is never easier!
##Contents
Clone this repo:
https://github.com/christychen126/Hackbright-project
Create virtual environment on your laptop, inside a directory:
virtualenv env
source env/bin/activate
Install the requirements:
pip install -r requirements.txt
Get secret keys for Google Flights API, Google Maps API and Airbnb API, and save it to secrets.sh:
export QPX_KEY= "Your Key Goes Here"
export Airbnb_KEY= "Your Key Goes Here"
export Google_maps_KEY= "Your Key Goes Here"
Set up your database and seed city images:
python model.py
python seed.py
Start running your server:
python server.py
Open up your browser and navigate to:
'localhost:5000/'
Have a nice trip!
Python, Flask, SQLAlchemy, PostgreSQL
JavaScript, HTML, CSS, jQuery, AJAX, Jinja2
Google Flights API, Google Maps API, The Unofficial Airbnb API
- User Preferences: Allow users to add preferred airlines, cabins, flght stops
- City Guide: Add city information, attractions, and tours.
- Password hashing: Passwords will be hashed before being saved in DB
- Book Flight Link: Direct users to airline websites
- City Filter: Allow users to filter city by city features and activities