An open API service indexing awesome lists of open source software.

https://github.com/calvinlfer/play-framework-dynamodb-example

A simplistic Play Framework application providing a REST API for the persons. It makes use of Google Guice injection along with DynamoDB through the use of Scanamo.
https://github.com/calvinlfer/play-framework-dynamodb-example

dynamodb play-framework playframework scala

Last synced: 10 months ago
JSON representation

A simplistic Play Framework application providing a REST API for the persons. It makes use of Google Guice injection along with DynamoDB through the use of Scanamo.

Awesome Lists containing this project

README

          

Example REST API with Play Framework and DynamoDB
================================================

This example is used to demonstrate a sample Play Framework application
that has to integrate with DynamoDB and provide a REST API for the
`persons` resource. This application has tests (Unit and Integration)
and attempts to follow a functional style along with following good
practices such as bulk-heading and using tools to enforce style and
coverage.

[![Build Status](https://travis-ci.org/calvinlfer/Play-Framework-example.svg?branch=master)](https://travis-ci.org/calvinlfer/Play-Framework-example)
[![codecov](https://codecov.io/gh/calvinlfer/Play-Framework-example/branch/master/graph/badge.svg)](https://codecov.io/gh/calvinlfer/Play-Framework-example)

More Information
================

- See [ScalaJsonCombinators](https://www.playframework.com/documentation/2.5.x/ScalaJsonCombinators) which cover using validation helpers
- More specifically [Validation with Reads](https://www.playframework.com/documentation/2.5.x/ScalaJsonCombinators#Validation-with-Reads)

- The SBT DynamoDB plugin only works on Unix based operating systems

- In order to run code coverage reports, then use `sbt clean coverage test`
followed by `sbt coverageReport` to avoid interference with Local DynamoDB.
The overview is present in `target/scoverage-report/index.html`