Skip to content

Instantly share code, notes, and snippets.

@ponkotuy
Created December 22, 2015 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponkotuy/576c12657d2f9a961b1b to your computer and use it in GitHub Desktop.
Save ponkotuy/576c12657d2f9a961b1b to your computer and use it in GitHub Desktop.
SkinnyMicroScalas サンプル
#!/usr/bin/env scalas
/***
scalaVersion := "2.11.7"
resolvers += "sonatype releases" at "https://oss.sonatype.org/content/repositories/releases"
libraryDependencies += "org.skinny-framework" %% "skinny-micro-server" % "1.0.+"
*/
import skinny.micro._
object HelloApp extends WebApp {
get("/say-hello") {
s"Hello, ${params.getOrElse("name", "Anonymous")}!\n"
}
}
WebServer.mount(HelloApp).port(4567).start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment