play-template
This is a small play framework application one can start development from
How to use it
- Create a repo in github
- Clone this repo to a needed folder
git clone [email protected]:liveintent-berlin/play-template.git my-new-project
- Make origin point to the created repo
cd my-new-project
git remote set-url origin [email protected]:liveintent-berlin/my-new-project
-
Replace all placeholders in the template files with values pertinent to your new project.
The placeholders generally
<LOOK_LIKE_THIS>
.<SCALA_APP_NAME>
determines the name of your application in thesbt
build. This name is also used for the packaged startup script. Examples:decision-engine-recommendation
orstreamliner
.<EB_APP_NAME>
should match the Elastic Beanstalk Application where this service is going to be deployed. Examples:DER
orStreamliner
.<AWS_SERVICE_TAG>
should match theService
tag set up for the EB application. In most cases this will be the same as<EB_APP_NAME>
.<SCALA_APP_NAME_WITHOUT_DASHES>
is the same as<SCALA_APP_NAME>
with all funny characters removed - theBuildInfo
class is auto-generated in a namespace derived from the sbtname
setting and will strip away characters that are not legal in namespace identifiers. Examples:decisionenginerecommendation
orstreamliner
. -
git push origin master
git add .
git commit -m "ready to use"
git push origin master
- Get a coffee
If you have a compilation failure in Module.scala
- Comment the line with
bind(classOf[BuildInfoProvider]).toInstance(new MirrorBuildInfoProvider(BuildInfo))
- Remove the import of
BuildInfo
- Compile
- Add import as
import com.liveintent.realServiceName.BuildInfo
- Uncomment the line with
bind(classOf[BuildInfoProvider]).toInstance(new MirrorBuildInfoProvider(BuildInfo))