Skip to content

ldaume/play-restful-docker.g8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies UpToDate License
Dependencies UpToDate License: MIT

Play RESTful Docker

Abstract

A RESTful java 12 Play 2.7.2 Giter8 template with Docker.

Usage

sbt new ldaume/play-restful-docker.g8

Introduction

A starting template if you want to develop a RESTful micro service with docker.

Then, we have the following objectives:

  • Development should be simple. activator run should be enough to run all services at the same time.
  • Common code, dependencies and modules should be easily shared.
  • We should be able to compile, test and run each service separately in development and production.
  • We should distribute each service separately.
  • It should be a template ready to use with the following features:
    • Dependency Injection with Guice
    • Dockerizable
  • It shoud explain:
    • How to share every common code to avoid duplications (models, controllers, ...).
    • How to use it for development, test and production.

Binding

This template uses the dependency injected router Dependency Injection

Dependency-Injection

So, every route starts with an @ like @controllers.Application.index() which leads to non-static actions.

Logging

The logger is configured for a better output and contains a rolling file appender. The logs are look like 2015-08-17 10:21:17,914 INFO [ForkJoinPool-1-worker-3] application: Class::Method:#Line - Message.

About

A Giter8 template to develop a sbt and Play based restful API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published