Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
SBT template project for quickly getting started with spray-server
branch: master

This branch is 14 commits ahead, 68 commits behind spray:on_spray-can_1.3_scala-2.11

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
project
src
.gitignore
README.markdown

README.markdown

spray Template Project

This projects provides a starting point for your own spray-server endeavors. There are two branches:

  • The master branch provides a template for a spray on Jetty application.
  • The spray-can branch provides a template for a spray on spray-can application.

You are currently on the master branch. The template application here uses the following dependencies:

  • Scala 2.9.1
  • Akka 1.3.1
  • spray-server 0.9.0
  • Jetty 8.1.0
  • SBT 0.11.3

Follow these steps to get started:

  1. Git-clone this repository.

    $ git clone git://github.com/spray/spray-template.git my-project
    
  2. Change directory into your clone:

    $ cd my-project
    
  3. Launch SBT:

    $ sbt
    
  4. Compile everything and run all tests:

    > test
    
  5. Start Jetty:

    > container:start
    
  6. Browse to http://localhost:8080/

  7. Learn more at http://www.spray.cc/

  8. Start hacking on src/main/scala/com/example/HelloService.scala

Apart from the Scala sources in the src/main/scala tree the following non-Scala configuration files are important:

  • src/main/resources/akka.conf, the combined Akka and spray configuration file
  • src/main/resources/logback.xml, the config file for the SLF4J logging backend "logback" (not required but recommended)
  • src/main/webapp/WEB-INF/web.xml, the config file for the Jetty instance used by SBTs web plugin
Something went wrong with that request. Please try again.