inakianduaga / scala-play-car-advert

Scala Play Restful example app w/ AWS DynamoDB integration
http://petstore.swagger.io/?url=http://scala-play-car-advert.herokuapp.com/swagger/car/adverts/spec.yml
Other
2 stars 0 forks source link
aws-dynamodb scala

scala-play-car-advert

Build Status Coverage Status

Scala Play Restful example app w/ AWS DynamoDB integration

This is a small exercise app to demonstrate integration of a Restful service w/ AWS DynamoDB using the Scala Play framework

Interacting with production app

Use the Swagger UI official-hosted client to test the Rest application in production. This is the Swagger specification of the REST API used by the client

Local Setup

The entire application is dockerized and can be run locally easily w/ minimal dependencies.

Requirements:

Docker, Docker Compose must be installed

Installation:

From the ./docker folder

  1. Build docker containers for dynamoDB and SBT by running docker-compose build

  2. Spin up Play app & DynamoDB: docker-compose up -d (first run will take a while because SBT needs to populate the cache). App will be reachable on http://localhost:9000

  3. API can be tested through the Swagger UI endpoint. Local DynamoDB provides a shell UI as well to query DB directly

Tests:

Deployment

Travis CI is used for building and deploying the application on production (also runs tests on PR/Commit/Merges)

Task Goals

Service should: