Learning Play! Framework 2

More Information
  • What's great about the new framework and on which projects it works best
  • Set up a full installation including the framework itself but also the development environment
  • Build a simple site or even a webapp using the server-side and templating system
  • Store data in a relational database, using Ebean in Java and Anorm in Scala
  • Discover the reactive way of handling data (back and forth with a client)
  • Test all layers of your application using the integration of Play! 2 with the most famous testing frameworks – even on the client-side
  • Deploy your application on the cloud, choosing Heroku as an example, but also on Cloudbees which enables a continuous integration



The Learning Play! Framework 2 has been created for web developers that are building web applications. The core idea is to focus on the HTTP features and to enable them through a simplification lens. Building a web application no longer requires a configuration phase, an environment setup, or a long development lifecycle - it's integrated!

Learning Play! Framework 2 will enable any web developers to create amazing web applications taking advantage of the coolest features. It's the fastest way to dive into Play!, focusing on the capabilities by using them in a sample application. Although essentially Java based code, a Scala version is presented as well – giving an opportunity to see some Scala in action.

After setting up the machine and learning some Scala, you will construct an application which builds from static to dynamic, before introducing a database.

Then we'll focus on how data can be consumed and rendered in several ways. This will enable some real time communication through WebSocket and Server-Sent Event – on both server and client sides.

The book will end with testing and deployment, which completes any web development project.

  • While driving in Java, tasks are also presented in Scala – a great way to be introduced to this amazing language
  • Create a fully-fledged, collaborative web application – starting from ground zero; all layers are presented in a pragmatic way
  • Gain the advantages associated with developing a fully integrated web framework
Page Count 290
Course Length 8 hours 42 minutes
ISBN 9781782160120
Date Of Publication 26 Mar 2013


Andy Petrella

Andy Petrella is first and foremost a Belgian mathematician who tried to find a way to apply his skills to the concrete world. One of them was programming. So, after graduating in Mathematics, he continued his study in Informatics at the University of Liège.

He quickly became interested in Geomatics because of the heterogeneous needs of this discipline, which led him to mainly work in the GIS field. Over there, he got the opportunity to sharpen his skills on distributed architecture for interoperable solutions.

After spending time developing in Java and integrating scripting languages such as Python and JavaScript, he slowly moved back to functional programming. Although working with JVM was a constraint, he tried his hand at Scala and took the opportunity to use Play! 2 while it was still in development.

Having found a new way to enjoy mathematics along with programming, he joined one of his friends and they decided to create NextLab (http://www.nextlab.be/), a company that offers the perfect context to push Play! 2 and Scala to the foreground through projects and customers.

Andy also loves to share his experiences, his enjoyment, and his discoveries through the co-creation of a user group called WAJUG (http://wajug.be/) dedicated to help Walloons to meet together and share ideas about information technology. In order to ensure a constant flow of information, he also writes his thoughts on his blog, SKA LA (http://ska-la.blogspot.be/).