Play Framework Essentials

An intuitive guide to creating easy-to-build scalable web applications using the Play framework
Preview in Mapt

Play Framework Essentials

Julien Richard-Foy

An intuitive guide to creating easy-to-build scalable web applications using the Play framework

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$29.99 p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Play Framework Essentials Book Cover
Play Framework Essentials
$ 17.99
$ 12.60
Play Framework Cookbook - Second Edition Book Cover
Play Framework Cookbook - Second Edition
$ 35.99
$ 25.20
Buy 2 for $30.10
Save $23.88
Add to Cart

Book Details

ISBN 139781783982400
Paperback200 pages

Book Description

Play is a framework to write web applications using Scala or Java. It provides a productive development environment, allowing you to just hit the "refresh" button in your browser to compile your changes and reload the application. Because of its stateless nature, the framework makes it easy to build applications that scale. Play provides a reactive programming model to harness the event-driven HTTP layer.

This book provides a step-by-step walkthrough of how to build a complete web application following best application development practices using Play framework 2. All aspects specific to web-oriented architectures are covered: the HTTP layer, JSON manipulation, HTML templating, asset compression and concatenation, form submission, content negotiation, security, and HTTP streaming. The book will also provide detailed architectural insights into Play framework to give you a better understanding in order to successfully build scalable applications.

Table of Contents

Chapter 1: Building a Web Service
Play – a framework used to write web applications
Bootstrapping a Play application
URL routing
Building HTTP responses
Reading JSON requests
Summary
Chapter 2: Persisting Data and Testing
Testing your web service
Persisting data
Using an in-memory database for tests
Summary
Chapter 3: Turning a Web Service into a Web Application
Delta between a web service and a web application
Using the template engine to build web pages
Generating HTML forms
Reading and validating HTML form data
Handling content negotiation
Putting things together
Writing web user interface tests
Summary
Chapter 4: Integrating with Client-side Technologies
Philosophy of Play regarding client-side technologies
Serving static assets
Using the JavaScript reverse router
Managing assets from the build system
Summary
Chapter 5: Reactively Handling Long-running Requests
Play application's execution model
Scaling up your server
Embracing non-blocking APIs
Managing execution contexts
Writing incremental computations using iteratees
Streaming results using enumerators
Manipulating data streams by combining iteratees, enumerators, and enumeratees
Controlling the data flow
Summary
Chapter 6: Leveraging the Play Stack – Security, Internationalization, Cache, and the HTTP Client
Handling security concerns
Saving computation time using cache
Serving content in several languages
Calling remote web services
Summary
Chapter 7: Scaling Your Codebase and Deploying Your Application
Making an action's logic reusable and composable with action builders
Modularizing your code
Application deployment
Summary

What You Will Learn

  • Set up a unified development environment for both the client-side and server-side code
  • Understand the challenges of building a scalable web application and master the solutions provided by Play framework
  • Integrate the framework with existing client-side or server-side technologies such as persistence systems
  • Harness the reactive programming model to process data streams
  • Design robust, maintainable, and testable code
  • Be proficient in manipulating JSON data blobs
  • Deploy your application on a PaaS platform

Authors

Table of Contents

Chapter 1: Building a Web Service
Play – a framework used to write web applications
Bootstrapping a Play application
URL routing
Building HTTP responses
Reading JSON requests
Summary
Chapter 2: Persisting Data and Testing
Testing your web service
Persisting data
Using an in-memory database for tests
Summary
Chapter 3: Turning a Web Service into a Web Application
Delta between a web service and a web application
Using the template engine to build web pages
Generating HTML forms
Reading and validating HTML form data
Handling content negotiation
Putting things together
Writing web user interface tests
Summary
Chapter 4: Integrating with Client-side Technologies
Philosophy of Play regarding client-side technologies
Serving static assets
Using the JavaScript reverse router
Managing assets from the build system
Summary
Chapter 5: Reactively Handling Long-running Requests
Play application's execution model
Scaling up your server
Embracing non-blocking APIs
Managing execution contexts
Writing incremental computations using iteratees
Streaming results using enumerators
Manipulating data streams by combining iteratees, enumerators, and enumeratees
Controlling the data flow
Summary
Chapter 6: Leveraging the Play Stack – Security, Internationalization, Cache, and the HTTP Client
Handling security concerns
Saving computation time using cache
Serving content in several languages
Calling remote web services
Summary
Chapter 7: Scaling Your Codebase and Deploying Your Application
Making an action's logic reusable and composable with action builders
Modularizing your code
Application deployment
Summary

Book Details

ISBN 139781783982400
Paperback200 pages
Read More

Read More Reviews

Recommended for You

Play Framework Cookbook - Second Edition Book Cover
Play Framework Cookbook - Second Edition
$ 35.99
$ 25.20
Mastering Play Framework for Scala Book Cover
Mastering Play Framework for Scala
$ 39.99
$ 28.00
Building Applications with Scala Book Cover
Building Applications with Scala
$ 39.99
$ 28.00
Mastering Akka Book Cover
Mastering Akka
$ 39.99
$ 28.00
Learning Akka Book Cover
Learning Akka
$ 35.99
$ 25.20
AngularJS: Maintaining Web Applications Book Cover
AngularJS: Maintaining Web Applications
$ 59.99
$ 42.00