The bundle includes a small bootstrap script that
can start Activator. To start Typesafe Activator's UI:

In your File Explorer, navigate into the directory that the template was extracted to, right-click on the file named "activator.bat", then select "Open", and if prompted with a warning, click to continue:

Or from a command line:

C:\Users\typesafe\hello-play-backbone> activator ui

This will start Typesafe Activator and open this template in your browser.

Option 3: Create a hello-play-backbone project from the command line

If you have Typesafe Activator, use its command line mode
to create a new project from this template.
Type activator new PROJECTNAME hello-play-backbone on the command line.

Note

Running the Application

On the left-hand side we can see the console output, which tells which port is used. Simply browse to given address. By default: http://localhost:9000

Running the Test

There is also a Specification test for the CountingActor located in the test/sample/SpringTest.scala file. It is structured in the same way as the Main application.

The result of running the test is shown in the Test tab. On the left-hand side we can see the console output.

Exploring the Code

To be able to use the backbone.js First we need to reference them in our main view app/views/index.scala.html. Inside this view we reference out javascript files using play framework asset management. jQuery and Underscore.js are dependencies.

Inside index.js there is Message model which represent the message coming from server. There is MessageView which represents the view that will be rendered. The view simply handles the button clicks on "Get JSON Message" button and makes fetch call on Message model. And whenever a change happens on MessageModel a render is called for this view with the new model.

Have a Question?

From the blog

The Typesafe crew is thrilled to share that Scala Days SF was just fantastic. A big thanks to all who attended. We were wowed by our awesome keynoters, speakers and volunteer staff, and it was great to feel the excitement and energy at the beautiful Fort Mason.

After an inspiring Scala Days (the next one is in Amsterdam), it's great to be able to shine some light on technologies dedicated to improving the workday of Scala developers. We recently talked about eight hot technologies that perhaps you didn’t know were built in Scala, and in the spirit of that we’re happy to highlight Takipi, a company that's making life for commercial Scala apps better. Branching out from Java, Takipi now helps Scala developers understand when and why their code breaks in production. For more details, we asked Josh Dreyfuss, who recently joined the Takipi team, to take us through it all. -Oliver White, Typesafe, Inc.