Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/edadma/spray-app
- Owner: edadma
- License: mit
- Created: 2015-10-26T18:30:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-26T20:00:44.000Z (about 9 years ago)
- Last Synced: 2024-11-19T10:12:33.917Z (2 months ago)
- Language: Scala
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.SprayAppobject 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