Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>EDIT</strong><br> OK, you asked for it ;-) </p> <p>Here's a bleeding edge setup for Scalatra with SBT Coffeescript &amp; LESS (see <a href="https://stackoverflow.com/questions/9832710/how-to-set-up-a-local-proxy-repository-for-sbt/9835979#9835979">HERE</a> for SBT-Eclipse dependency management)</p> <p>1) eclipsify a test project</p> <p>2) in project root create "build.sbt" file:</p> <pre><code>import AssemblyKeys._ import Keys._ name := "your project name" version := "1.0" scalaVersion := "2.9.1" fork in run := true resolvers ++= Seq( "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/", "Typesafe repository" at "http://typesafe.artifactoryonline.com/typesafe/ivy-releases/" ) seq(webSettings :_*) seq(assemblySettings: _*) seq(coffeeSettings: _*) seq(lessSettings:_*) (LessKeys.mini in (Compile, LessKeys.less)) := false libraryDependencies ++= Seq( "org.scalatra" %% "scalatra" % "2.1.0-SNAPSHOT", "org.scalatra" %% "scalatra-scalate" % "2.1.0-SNAPSHOT", "org.scalatra" %% "scalatra-lift-json" % "2.1.0-SNAPSHOT", "org.scalatra" %% "scalatra-anti-xml" % "2.1.0-SNAPSHOT", "org.scalatra" %% "scalatra-fileupload" % "2.1.0-SNAPSHOT", "org.eclipse.jetty" % "jetty-webapp" % "8.1.0.RC2" % "test;container;provided", "javax.servlet" % "javax.servlet-api" % "3.0.1" % "provided" ) unmanagedBase &lt;&lt;= baseDirectory { base =&gt; base / "/src/main/webapp/WEB-INF/lib/" } </code></pre> <p>3) create folder "project" in root with plugins.sbt file:</p> <pre><code>libraryDependencies &lt;+= sbtVersion(v =&gt; "com.github.siasia" %% "xsbt-web-plugin" % (v+"-0.2.10")) resolvers += Resolver.url("sbt-plugin-releases", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns) addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0-M3") addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.7.2") addSbtPlugin("me.lessis" % "coffeescripted-sbt" % "0.2.2") addSbtPlugin("me.lessis" % "less-sbt" % "0.1.9") </code></pre> <p>4) from terminal/command prompt start sbt &amp; enable code reloading:</p> <pre><code># sbt &gt; ~;container:start;container:reload / </code></pre> <p>Open up the <a href="http://www.scalatra.org/2.1/book/" rel="nofollow noreferrer">Scalatra Book</a> and start hacking ;-)</p> <p><strong>ORIGINAL</strong><br> Have to mention it, but a micro framework a la Scalatra, Spray, or Unfiltered might be of interest as well.</p> <p>That is, if you're not looking for the kitchen sink that Lift and Play provide; if you <em>are</em> looking for the kitchen sink and want to get rolling quickly, Play 2.0 does indeed look quite nice.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload