Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 774 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 774 Bytes

daf-vanilla-microservice

An example of a skeleton for writing java and scala microservices using an Api contract first approach using play 2.6 and swagger code gen

Building

It uses maven swagger code gen plugin for starting from an openapi 2.0 (3.0 is still not supported) file specification for generated a skeleton of a Java Play with controllers apiModels ecc... but it is based on Scala 2.12 and sbt 13.3.

app/controllers

Steps for running locally

mvn clean compile
sbt
compile
run

Steps for publishing on daf test

mvn clean compile
sbt
eval System.setProperty("STAGING", "true")
reload
compile
docker:publish

Steps for publishing on daf production

mvn clean compile
sbt
compile
docker:publish