Skip to content

api-samples/countries-play-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST JSON API: Countries

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. Java
  2. sbt

Test it

sbt clean test

Run it locally

sbt run

Get an index of countries at http://localhost:9000/countries

Check out the details of Finland at http://localhost:9000/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 --stack cedar
git push heroku master

See Play documentation: Deploying to Heroku for more details.

About

A simple REST JSON API built with Scala / Play

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages