Skip to content
JamesEarlDouglas edited this page Sep 11, 2012 · 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.

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 artifact (available from the https://oss.sonatype.org/content/groups/scala-tools maven repositories)
  • Create an akka.conf file on the classpath and configure the "boot" property with the FQN of your boot class
  • If you'd like to run spray on top of a servlet container: Make sure your web.xml looks similar to the one from the template project and enable the correct ConnectorServlet for your setup.
  • If you'd like to run spray on top of spray-can: Check out the spray-can branch of the template project or turn to the spray-example-spray-can.

Clone this wiki locally