Skip to content
Mathias edited this page Jul 26, 2011 · 9 revisions

The easiest way to get started is to use the template project as a starting point. It contains a minimal ready-to-run spray application that you can use as a basis for your own projects.

The template project currently exists in two versions, one for SBT 0.7.7 (master branch) and one for SBT 0.10.1 (sbt-0.10 branch). Just pick the one for the SBT version that you'd like to work with and follow the instructions from the README file.

Even if you don't want to base your application on the template project you should check it out for info on how to set up the basic wiring. Here is the run down of the main points to get right:

  • Fetch the spray-server and spray-http artifacts (available from the scala-tools.org maven repositories)
  • Create an akka.conf file on the classpath and configure the 'boot' property with the FQN of your boot class
  • Make sure your web.xml looks similar to the one from the template project and enable the correct ConnectorServlet for your setup.

Clone this wiki locally