Skip to content

api-samples/countries-sinatra

Repository files navigation

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

About

A simple REST JSON API built with Ruby / Sinatra

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages