Dependencies:
- Java 8
- Scala 2.12
- SBT 1.3.0
First, install Java 8 JDK, Scala 2.12, the Scala build tool, and Docker on your computer.
To install Docker and docker-compose CLI, run the scripts/install-docker.sh script.
Install git-hooks
, execute the following command:
bash hooks/install.sh
To compile from the command line, use the command below:
sbt compile
To run the application, use the following command:
sbt run
The tree below reflects how unit tests and integration tests are separated by different directories.
-src
|_it // Here, you add new tests which load application context
| // and connect to datasources deployed on staging.
|
|_test // Here, you add pure unit tests which cover one or several specific
// `cromwell.pipeline.components` and have no dependencies on infrastructure.
Use the command below to run unit tests:
sbt test
To run the integration test suit, execute the following command:
sbt it:test
Default configuration can be overloaded in application.properties file located in the same directory as service jar
Locally we could start Postgres db instance via
docker-compose up
- SBT Build and dependency management
- AkkaHTTP Asynchronous, streaming-first HTTP server and client
- Slick Database query and access library
- Liquibase Migrations
- Circee JSON processing
- ScalaTest Unit-testing framework
- ScalaMock Unit-testing framework
https://kb.epam.com/display/EPMLSTR/Cromwell+Developer+Guide