-
Install pip package manager if you haven't yet:
Linux: sudo apt-get install python-pip Mac: brew install python
-
Install virtualenv:
sudo pip install virtualenv
-
Clone this repo:
git clone [email protected]:YoApp/BarRecommendor.git cd BarRecommendor
-
Create a virtualenv, enter it and install dependencies:
virtualenv env . env/bin/activate pip install -r requirements.txt
-
Get your Yelp keys and edit lines 30-33
-
Run the Flask server to accept incoming requests on port 5000:
python main.py
-
Download and run ngrok to expose your local server to the interwebz:
./ngrok 5000
-
Copy the URL ngrok creates (i.e
http://1fe8e9f.ngrok.com
) -
Create your Yo API account and use the ngrok URL as the callback URL but with the path "yo" (like it's defined for flask):
- Yo your location (double tap) to the name you created (YOBARME in this example) and get a bar recommendation!