Play for Scala: Covers Play 2

Play for Scala: Covers Play 2

Peter Hilton, Erik Bakker, Francisco Canedo


Summary

Play for Scala exhibits you ways to construct Scala-based net functions utilizing the Play 2 framework. This booklet starts off via introducing Play via a finished evaluate instance. Then, you will examine each one side of a standard Play software either by way of exploring easy code snippets and by means of including to a bigger working instance. alongside the best way, you are going to deepen your wisdom of Scala as a programming language and paintings with instruments like Akka.

About this Book

Play is a Scala internet framework with integrated benefits: Scala's powerful kind procedure is helping bring bug-free code, and the Akka framework is helping in achieving uncomplicated concurrency and height functionality. Play builds at the web's stateless nature for nice scalability, and since it's event-based and nonblocking, you can find it to be nice for close to real-time functions.

Play for Scala teaches you to construct Scala-based internet purposes utilizing Play 2. It will get you going with a finished evaluate instance. It then explores each one aspect of a customary Play program by way of strolling via pattern code snippets and including gains to a operating instance. alongside the best way, you will deepen your wisdom of Scala and discover ways to paintings with instruments like Akka.

Written for readers conversant in Scala and web-based software architectures. No wisdom of Play is believed.

Purchase of the print e-book features a unfastened booklet in PDF, Kindle, and ePub codecs from Manning Publications.

What's Inside

  • Intro to Play 2
  • Play's MVC structure
  • Mastering Scala templates and forms
  • Persisting facts and utilizing internet services
  • Using Play's complex features

About the Authors

Peter Hiltonv, Erik Bakker, and Francisco Canedo, are engineers at Lunatech, a consultancy with Scala and Play services. they're participants to the Play framework.

Table of Contents

    PART 1: GETTING all started
  1. Introduction to Play
  2. Your first Play application
  3. PART 2: center FUNCTIONALITY
  4. Deconstructing Play program architecture
  5. Defining the application's HTTP interface
  6. Storing data—the patience layer
  7. Building a consumer interface with view templates
  8. Validating and processing enter with the kinds API
  9. PART three: complex CONCEPTS
  10. Building a single-page JavaScript program with JSON
  11. Play and more
  12. Web companies, iteratees, and WebSockets

Show sample text content

Download sample