forked from spray/spray
-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
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.conffile on the classpath and configure the 'boot' property with the FQN of your boot class - Make sure your
web.xmllooks similar to the one from the template project and enable the correct ConnectorServlet for your setup.
- Home
- Requirements
- spray-server
- ... Getting Started
- ... Key Concepts
- ...... Request Lifecycle
- ...... Routes
- ...... Directives
- ...... Composing Directives
- ...... Rejections
- ...... Marshalling and Unmarshalling
- ... Predefined Directives
- ...... Method Filters
- ...... Path Filters
- ...... Parameter Filters
- ...... Form-Field Filters
- ...... Marshalling/Unmarshalling
- ...... Caching
- ...... Detach
- ...... Encoding/Decoding
- ...... Authentication/Authorization
- ...... File and Resource Directives
- ...... Misc Directives
- ... Advanced Topics
- ...... Case Class Extraction
- ...... Custom Directives
- ...... Custom Media Types
- ...... Custom Error Responses
- ... Configuration
- ... Testing
- ... Example Projects
- spray-client
- Patch Policy
- Credits
- Sponsors