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)

  1. Giter8 the Scalatra template

     $ ~/bin/g8 scalatra/scalatra-sbt

    Alternatively, git clone our pre-giter8ed repository:

     $ git clone http://github.com/scalatra/scalatra-sbt-prototype.git
  2. Change directory into your clone.

     $ cd my-app
  3. Launch SBT (>= 0.10).

     $ sbt
  4. Start Jetty, enabling continuous compilation and reloading.

     > container:start
         > ~ compile
  5. Browse to http://localhost:8080/.

  6. 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.9.1
  • 2.9.0-1
  • 2.8.2
  • 2.8.1
2.5 N/A
2.0.5-SNAPSHOT Testing support/2.0.x
  • 2.9.1
  • 2.9.0-1
  • 2.8.2
  • 2.8.1
2.5 N/A
2.1.0.M2 Milestone 2.0.1.M2
  • 2.9.x
3.0 N/A
2.1.0-SNAPSHOT Development develop
  • 2.9.x
3.0 3.3.x

Documentation

For more information, please see The Scalatra Book.