g8 This is a bare bones REST template implemented using the Spray framework on top of Akka. Persistence is handled with MongoDB.
Install giter8 (g8) - readme for more information.
Install SBT 0.11.X - Setup for more information.
Install MongoDB - Setup for more information.
In a shell, run the following:
g8 ctcarrier/spray-rest-sbt
cd <name-of-app>
sbt
> ~re:start --- -Dakka.mode=dev
You should be able to browse to a access a JSON body for your resource with 'curl -vv localhost:8080/$resourceName$'