Skip to content

aninahpets/Fuder

Repository files navigation

Fuder

Fuder is an application that uses the Yelp and Uber APIs (as well as the Google Places API for autocomplete and geocoding) to simplify and add an element of excitement to user excursions. Users authorize the app to make Uber ride requests on their behalf and provide their current location (the only required user input), along with any venue type or pricing preferences they may have. Fuder does the rest of the work, retrieving a highly-rated Yelp business in the vicinity, and making an Uber ride request to transport the user from their current location to the mystery destination. Fuder also tracks and allows users to view their visit history.

Contents

Technologies

Backend: Python, Flask, PostgreSQL, SQLAlchemy
Frontend: JavaScript, jQuery, AJAX, Jinja2, Bootstrap, HTML5, CSS3
APIs: Yelp (v3), Uber, Google Places

Features

Using a simple UI, users can choose to either be taken to a bar or restaurant:

Users can then select their pricing and venue preferences:

They then enter their location:

Uber prompts them for authorization:

The request is then completed and users can view a "sneak preview" while they wait for their ride:

Users can also view their visit history:

The app also has a user management system incorporating password encryption.

Installation

To run Fuder:

Install PostgreSQL (Mac OSX)

Clone or fork this repo:

https://github.com/aninahpets/Fuder.git

Create and activate a virtual environment inside your Fuder directory:

virtualenv env
source env/bin/activate

Install the dependencies:

pip install -r requirements.txt

Sign up to use the Yelp API, the Uber API, and the Google Places API.

Save your API keys in a file called secrets.sh using this format:

export yelp_app_id="YOURKEYHERE"
export yelp_app_secret="YOURKEYHERE"
export uber_client_id="YOURKEYHERE"
export uber_client_secret="YOURKEYHERE"
export uber_server_token="YOURKEYHERE"
export google_api_key="YOURKEYHERE"

Source your keys from your secrets.sh file into your virtual environment:

source secrets.sh

Set up the database:

python -i model.py
db.create_all()

Run the app:

python server.py

You can now navigate to 'localhost:5000/' to access Fuder.

About Me

The developer lives in the San Francisco Bay Area. This is her first software project. Visit her on LinkedIn.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published