- start server with
./sbt run
- run tests with
./sbt test
- test run configurations should include VM Parameter
-Dconfig.file=src/main/resources/test.conf
- test run configurations should include VM Parameter
- package fat jar with
./sbt assembly
- run jar with
java -jar $JAR
- override reference conf with
java -jar $JAR -Dconfig.file=$CONF
(confs merge with last-one-wins) - production & staging confs are supplied in
src/main/resources
with the following replaceable tokens:$DATABASE_USERNAME$
- replace this for the db username$DATABASE_PASSWORD$
- replace this for the db password
- override reference conf with
There isn't one. I retain the copyright to this source, it is not licensed at all but is presented for the purposes of learning and discussion only. Please don't try to do anything with this :) If you'd like a good starting place for a Scala-based API server, check out https://github.com/robconrad/base-api