Play starter project in Scala
Scala HTML JavaScript
Latest commit b05d7e4 Feb 7, 2017 @wsargent wsargent committed on GitHub Upgrade branch master using TemplateControl (#15)
* Updated with template-control on 2017-02-07T23:15:14.832Z
  /LICENSE:
    wrote /LICENSE
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.12")
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.0")
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.4")
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.8")
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.1")
  **/plugins.sbt:
    addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")
  **/plugins.sbt:
    addSbtPlugin("org.irundaia.sbt" % "sbt-sassify" % "1.4.6")

* Update plugins.sbt

README.md

Play Scala Starter

This is a starter application that shows how Play works. Please see the documentation at https://www.playframework.com/documentation/latest/Home for more details.

Running

Run this using sbt. If you downloaded this project from http://www.playframework.com/download then you'll find a prepackaged version of sbt in the project directory:

sbt run

And then go to http://localhost:9000 to see the running web application.

There are several demonstration files available in this template.

Controllers

  • HomeController.scala:

    Shows how to handle simple HTTP requests.

  • AsyncController.scala:

    Shows how to do asynchronous programming when handling a request.

  • CountController.scala:

    Shows how to inject a component into a controller and use the component when handling requests.

Components

  • Module.scala:

    Shows how to use Guice to bind all the components needed by your application.

  • Counter.scala:

    An example of a component that contains state, in this case a simple counter.

  • ApplicationTimer.scala:

    An example of a component that starts when the application starts and stops when the application stops.

Filters

  • Filters.scala:

    Creates the list of HTTP filters used by your application.

  • ExampleFilter.scala

    A simple filter that adds a header to every response.