Hello from Scalatra
package com.example.app
import org.scalatra._
class HelloFilter extends ScalatraServlet {
get("/hello/:name") {
Hello, {params("name")}
}
}
Quick start
Giter8 Quick start (SBT 0.10.x)
Giter8 the Scalatra template
$ ~/bin/g8 scalatra/scalatra-sbtAlternatively, git clone our pre-giter8ed repository:
$ git clone http://github.com/scalatra/scalatra-sbt-prototype.gitChange directory into your clone.
$ cd my-appLaunch SBT (>= 0.10).
$ sbtStart Jetty, enabling continuous compilation and reloading.
> container:start > ~ compileBrowse to http://localhost:8080/.
Happy hacking!
Community
Mailing list
The scalatra-user mailing list is open to anybody. It is the best place to ask questions, so everybody can see the answer.
IRC channel
For those topics that are easier to discuss in real time, or just to hang out with some fun people, join us at the #scalatra channel on irc.freenode.org.
Versions
| Scalatra Version | Status | Source | Scala versions | Servlet | Netty |
|---|---|---|---|---|---|
| 2.0.4 | Stable | master |
|
2.5 | N/A |
| 2.0.5-SNAPSHOT | Testing | support/2.0.x |
|
2.5 | N/A |
| 2.1.0.M2 | Milestone | 2.0.1.M2 |
|
3.0 | N/A |
| 2.1.0-SNAPSHOT | Development | develop |
|
3.0 | 3.3.x |
Documentation
For more information, please see The Scalatra Book.