Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/edadma/spray-app

a simple way to start a Spray application that also allows the JVM to exit in case of a binding failure.
https://github.com/edadma/spray-app

Last synced: 4 days ago
JSON representation

a simple way to start a Spray application that also allows the JVM to exit in case of a binding failure.

Awesome Lists containing this project

README

        

# spray-app

a simple way to start a Spray application that also allows the JVM to exit in case of a binding failure.

## Example

import spray.routing._
import xyz.hyperreal.sprayapp.SprayApp

object SprayAppMain extends SprayApp {

startServer( interface = "localhost", port = 8080 ) {

(get & pathSingleSlash) {
complete {


Spray App Test


Spray App Test




}
}
}

}

The `interface` and `port` parameters default to `localhost` and `8080`, respectively.

## Usage

Just include

resolvers += "Hyperreal Repository" at "https://dl.bintray.com/edadma/maven"

libraryDependencies += "xyz.hyperreal" %% "spray-app" % "0.1"

in your build.sbt.

## License

MIT license