Skip to content

bravelittlescientist/yelp-api-omelette-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yelp API Sample Search App

Project Setup

  1. Register for GitHub, and fork this project so you have your own repository!

  2. Register on Heroku if you haven't already, and get started with the appropriate toolbelt for your system: https://toolbelt.heroku.com/

  3. Get started with Heroku and Python here: https://devcenter.heroku.com/articles/getting-started-with-python

Yelp API

Register for API 2.0 keys at http://www.yelp.com/developers/

Copy env.sample to .env in this directory and fill in your API keys. The .env file is ignored by version control.

$ cp env.sample .env

Install Heroku Config and add your keys to Heroku environment

$ heroku login
Email:
Password (typing will be hidden): 
Authentication successful.

$ heroku plugins:install git://github.com/ddollar/heroku-config.git
Installing heroku-config... done

$ heroku config:push 
Config in .env written to hello-yelp-igsa
Note that heroku config:push will overwrite the environment in your Heroku application, if you have one set up!

Reference: https://devcenter.heroku.com/articles/config-vars#local-setup

Deployment

Let's try a local build first.

$ foreman start

This command should set up a server at localhost:5000, where you can play with the app and test out queries (its functionality is quite basic).

With your local version working, push to heroku!

$ git push heroku master

Don't forget to push your changes to GitHub. Heroku recommends git services external to itself for canonical version control.

$ git push origin master

About

For when you just really, really, really need an omelette.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published