Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 974 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 974 Bytes

REST JSON API: Countries

Build Status

Simple interface for querying country information by CCA2 two-character country code, per assignment https://bitbucket.org/mikaelhg/interview-countries

Find the beef

Install prerequisites

  1. Bundler
  2. Gems: bundle install --path vendor/bundle

Test it

bundle exec ruby countries_test.rb

Run it locally

bundle exec rackup

Check out the details of Finland at http://localhost:9292/countries/FI

Deploy on Heroku

Prerequisites:

  1. A Heroku account, obviously
  2. Heroku toolbelt installed and ready to go

Set up a new app on Heroku and deploy:

heroku create
git push heroku master