Skip to content

SBT template project for quickly getting started with spray-server

Notifications You must be signed in to change notification settings

epishkin/spray-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.2

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

About

SBT template project for quickly getting started with spray-server

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%