https://github.com/spray/spray-template
SBT template project for quickly getting started with spray-server
https://github.com/spray/spray-template
Last synced: about 1 year ago
JSON representation
SBT template project for quickly getting started with spray-server
- Host: GitHub
- URL: https://github.com/spray/spray-template
- Owner: spray
- Created: 2011-03-25T11:01:06.000Z (about 15 years ago)
- Default Branch: on_spray-can_1.3_scala-2.11
- Last Pushed: 2015-03-24T14:40:08.000Z (about 11 years ago)
- Last Synced: 2025-03-29T16:11:08.679Z (about 1 year ago)
- Language: Scala
- Homepage: http://spray.io
- Size: 725 KB
- Stars: 405
- Watchers: 39
- Forks: 201
- Open Issues: 3
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
## _spray_ Template Project
This projects provides a starting point for your own _spray-routing_ endeavors.
There are 8 branches, providing templates for _spray-routing_ on
* _spray-can_, Scala 2.9 + Akka 2.0 + spray 1.0 (the `on_spray-can_1.0` branch)
* _spray-can_, Scala 2.10 + Akka 2.1 + spray 1.1 (the `on_spray-can_1.1` branch)
* _spray-can_, Scala 2.10 + Akka 2.2 + spray 1.2 (the `on_spray-can_1.2` branch)
* _spray-can_, Scala 2.10 + Akka 2.3 + spray 1.3 (the `on_spray-can_1.3` branch)
* _spray-can_, Scala 2.11 + Akka 2.3 + spray 1.3 (the `on_spray-can_1.3_scala-2.11` branch)
* _Jetty_, Scala 2.9 + Akka 2.0 + spray 1.0 (the `on_jetty_1.0` branch)
* _Jetty_, Scala 2.10 + Akka 2.1 + spray 1.1 (the `on_jetty_1.1` branch)
* _Jetty_, Scala 2.10 + Akka 2.2 + spray 1.2 (the `on_jetty_1.2` branch)
* _Jetty_, Scala 2.10 + Akka 2.3 + spray 1.3 (the `on_jetty_1.3` branch)
* _Jetty_, Scala 2.11 + Akka 2.3 + spray 1.3 (the `on_jetty_1.3_scala-2.11` branch)
You are currently on the `on_spray-can_1.3_scala-2.11` branch.
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 the application:
> re-start
6. Browse to [http://localhost:8080](http://localhost:8080/)
7. Stop the application:
> re-stop
8. Learn more at http://www.spray.io/
9. Start hacking on `src/main/scala/com/example/MyService.scala`