Simple interface for querying country information by CCA2 two-character country code, per assignment https://bitbucket.org/mikaelhg/interview-countries
- Test: test/controllers/CountriesSpec.scala
- Routes: conf/routes
- Controller: app/controllers/Countries.scala
- Java
- sbt
sbt clean test
sbt run
Get an index of countries at http://localhost:9000/countries
Check out the details of Finland at http://localhost:9000/countries/FI
Prerequisites:
- A Heroku account, obviously
- 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.