forked from spray/spray
-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
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.conffile 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.xmllooks similar to the one from the template project and enable the correctConnectorServletfor your setup. - If you'd like to run spray on top of spray-can:
Check out the
spray-canbranch of the template project or turn to the spray-example-spray-can.
- 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