spray template project compatible with Heroku
This template is built on top the elegant template from https://github.com/spray/spray-template.
Follow these steps to get started:
-
Git-clone this repository.
-
Change directory into your clone.
-
Launch SBT:
$ sbt
-
Compile everything and run all tests:
> test
-
Start the application:
> re-start
-
Browse to http://localhost:8080/
-
Stop the application:
> re-stop
-
Learn more at http://www.spray.io/
-
Start hacking on
src/main/scala/com/example/MyService.scala
This template currently uses sbt 0.12.0, and changing it to use 0.12.4 or 0.13.0 seems to not work.
- spray.io
- Heroku Scala getting started - this is not spray.io specific but may add some insight
This template is also compatible with eclipse (verified on Kepler).
To generate an eclipse project for it, run sbt eclipse
after having installed the sbtecilpse plugin version that matches your version of sbt.
You can then import and run the project in eclipse, by locating in eclipse to the Boot.scala
source file, and clicking the run
icon. In the import wizard, select to import an existing project.