This is a simple, example Sinatra app that connects to the USDA's API for farmers markets. It is meant to be well-organized, well-tested and anything else a good Sinatra app should be. It's under the MIT license, so students or instructors can take it and adapt it as they wish.
git clone https://github.com/chrisvfritz/farmers_markets.git
cd farmers_markets
# If you don't have Ruby 2.2.0 installed
rbenv install 2.2.0 # for rbenv
# OR
rvm install ruby-2.2.0 # for rvm
bundle install
rackup
OR, if you already have the app running locally, you can run this in the app's directory:
heroku create name-of-my-farmers-markets-app
git push heroku master