Synopses & Reviews
Play for Scala shows you how to build Scala-based web applications using the Play 2 framework. This book starts by introducing Play through a comprehensive overview example. Then, you'll look at each facet of a typical Play application both by exploring simple code snippets and by adding to a larger running example. Along the way, you'll deepen your knowledge of Scala as a programming language and work with tools like Akka.
About this Book
Play is a Scala web framework with built-in advantages: Scala's strong type system helps deliver bug-free code, and the Akka framework helps achieve hassle-free concurrency and peak performance. Play builds on the web's stateless nature for excellent scalability, and because it is event-based and nonblocking, you'll find it to be great for near real-time applications.
Play for Scala teaches you to build Scala-based web applications using Play 2. It gets you going with a comprehensive overview example. It then explores each facet of a typical Play application by walking through sample code snippets and adding features to a running example. Along the way, you'll deepen your knowledge of Scala and learn to work with tools like Akka.
Written for readers familiar with Scala and web-based application architectures. No knowledge of Play is assumed.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
- Intro to Play 2
- Play's MVC structure
- Mastering Scala templates and forms
- Persisting data and using web services
- Using Play's advanced features
About the Authors
Peter Hiltonv, Erik Bakker, and Francisco Canedo, are engineers at Lunatech, a consultancy with Scala and Play expertise. They are contributors to the Play framework.
Table of Contents
PART 1: GETTING STARTED
- Introduction to Play
- Your first Play application
PART 2: CORE FUNCTIONALITY
- Deconstructing Play application architecture
- Defining the application's HTTP interface
- Storing data—the persistence layer
- Building a user interface with view templates
- Validating and processing input with the forms API
PART 3: ADVANCED CONCEPTS
- Play and more
- Web services, iteratees, and WebSockets
Scala has established itself as a viable alternative to Java, and powerful new tools make it easier than ever to get started. Play 2 is an open source web framework for building browser-based applications in Scala. It takes advantage of Scala's strong type system to give high-performance, bug-free code. Because it's event-based and non-blocking, it's a great choice for near real time applications. And it makes use of the web's stateless nature to offer excellent scalability and flexibility.
Play for Scala shows how to build Scala-based web applications using the Play 2 framework. It starts by introducing Play! through a comprehensive overview example. Then, it looks at each facet of a typical Play application, both by exploring simple code snippets and by adding to a larger running example.
Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.
About the Author
is a senior solution architect at Lunatech Research in the Netherlands and a committer on the Play framework.
Erik Bakker, also at Lunatech, is a Play module contributor and regularly writes and presents about Play.
Francisco Canedo joined Lunatech in 2005 and has been focused on Scala and Play for the past 2 years.