GithubHelp home page GithubHelp logo

play2.5-compile-time-di's Introduction

Update: Now it is a multi project buiild with spearation of core and web project where the latter is based on play 2.5.12.

I created this project as a template for play 2.5 application with compile time dependency injection.

It is solely meant for writing back end services with minimal of web interface. So that I can just download and start coding rather than changing and removing stuff from play-scala template every time I start a new project.

Includes docker-compose. On first start it will build docker image named as tester but it can be changed to whatever you like in docker-compose.yml file.

Also worth noting that docker-compose needs 2 named external volumes to enable quick startup. So if the volumes are not present already, they should be created with one time command for both volumes as follow:

docker volume create --name sbt
docker volume create --name ivy2

How to clone:

git clone https://github.com/naumanbadar/play2.5-Compile-time-DI.git <your project name>

How to run in dev mode in docker-compose:

Run in auto compile mode which will recompile on every change in sources.

cd <your project name>
docker-compose up

Start container with bash so you can either chose to test, compile or simply use the shell.

cd <your project name>
docker-compose run tester bash

Note that it will not bind container ports to host port as per design of docker-compose. If ports needs to be accessed with docker-compose run then use the flag --service-ports.

cd <your project name>
docker-compose run --service-ports tester bash

Docker base image for testing

Dockerfile for naumanbadar/sbt_docker, referred in docker-compose.yml, can be found at https://github.com/naumanbadar/sbt_docker or the image itself can be pulled from https://hub.docker.com/r/naumanbadar/sbt_docker/~/dockerfile/

play2.5-compile-time-di's People

Contributors

naumanbadar avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.