Mastering Play Framework for Scala

Leverage the awesome features of Play Framework to build scalable, resilient, and responsive applications

Mastering Play Framework for Scala

This ebook is included in a Mapt subscription
Shiti Saxena

1 customer reviews
Leverage the awesome features of Play Framework to build scalable, resilient, and responsive applications
$10.00
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook
Preview in Mapt

Book Details

ISBN 139781783983803
Paperback274 pages

Book Description

Play Framework is an open source web application framework that is written in Java and Scala. It follows the Model-View-Controller architectural pattern and enables the user to employ Scala for application development, while keeping key properties and features of Play Framework intact.

Starting off by building a basic application with minimal features, you get a detailed insight into handling data transactions and designing models in Play. Next, you venture into the concepts of Actors and WebSockets, the process of manipulating data streams, and testing and debugging an application in Play. Finally, you gain an insight into extending the framework by writing custom modules or plugins in Play. Each chapter has a troubleshooting section that helps you out by discussing the causes of, and solutions to, some commonly faced issues.

Table of Contents

Chapter 1: Getting Started with Play
Venturing into the world of Play
Summary
Chapter 2: Defining Actions
A dummy Artist model
Actions
Request body parsers
Extending a parser
Exploring the results
Asynchronous Actions
Content negotiation
Filters
Action composition
Troubleshooting
Summary
Chapter 3: Building Routes
Introduction to Play routes
Reverse routing
Assets
Configuring route definitions
Configuring request parameters
Troubleshooting
Summary
Chapter 4: Exploring Views
Diving into Scala templates
Generating forms
Internationalization
Scala templating in Play
Troubleshooting
Summary
Chapter 5: Working with Data
Introducing models
JDBC
Anorm
Slick
ReactiveMongo
The Cache API
Troubleshooting
Summary
Chapter 6: Reactive Data Streams
Basics of handling data streams
Iteratees
Enumerator
Enumeratees
Summary
Chapter 7: Playing with Globals
GlobalSettings
The life cycle of an application
The request-response life cycle
Summary
Chapter 8: WebSockets and Actors
An introduction to WebSockets
WebSockets in Play
Actor Model
Introducing Akka Actors
WebSocket using Iteratee
WebSocket using Actors without Iteratees
Closing a WebSocket
Troubleshooting
Summary
Chapter 9: Testing
The setup for writing tests
Unit testing
Dissecting PlaySpecification
Unit testing a controller
Functional testing
Summary
Chapter 10: Debugging and Logging
Debugging a Play application
Experimenting in a Scala console
Logging
Play's logging API
Log configuration in Play
Summary
Chapter 11: Web Services and Authentication
Calling web services
OpenID
OAuth
Summary
Chapter 12: Play in Production
Deploying a Play application
Configuring for production
Enabling SSL
Using a load balancer
Troubleshooting
Summary
Chapter 13: Writing Play Plugins
Plugin definition
Plugin declaration
Exposing services through plugins
Tips for writing a plugin
Summary

What You Will Learn

  • Customize your framework to accommodate the specific requirements of an application
  • Develop responsive, reliable, and highly scalable applications using Play Framework
  • Build and customize Play Framework plugins that can be used in multiple Play applications
  • Familiarize yourself with third-party APIs to avoid rewriting existing code
  • Gain an insight into the various aspects of testing and debugging in Play to successfully test your apps
  • Get to know all about the concepts of WebSockets and Actors to process messages based on events

Authors

Table of Contents

Chapter 1: Getting Started with Play
Venturing into the world of Play
Summary
Chapter 2: Defining Actions
A dummy Artist model
Actions
Request body parsers
Extending a parser
Exploring the results
Asynchronous Actions
Content negotiation
Filters
Action composition
Troubleshooting
Summary
Chapter 3: Building Routes
Introduction to Play routes
Reverse routing
Assets
Configuring route definitions
Configuring request parameters
Troubleshooting
Summary
Chapter 4: Exploring Views
Diving into Scala templates
Generating forms
Internationalization
Scala templating in Play
Troubleshooting
Summary
Chapter 5: Working with Data
Introducing models
JDBC
Anorm
Slick
ReactiveMongo
The Cache API
Troubleshooting
Summary
Chapter 6: Reactive Data Streams
Basics of handling data streams
Iteratees
Enumerator
Enumeratees
Summary
Chapter 7: Playing with Globals
GlobalSettings
The life cycle of an application
The request-response life cycle
Summary
Chapter 8: WebSockets and Actors
An introduction to WebSockets
WebSockets in Play
Actor Model
Introducing Akka Actors
WebSocket using Iteratee
WebSocket using Actors without Iteratees
Closing a WebSocket
Troubleshooting
Summary
Chapter 9: Testing
The setup for writing tests
Unit testing
Dissecting PlaySpecification
Unit testing a controller
Functional testing
Summary
Chapter 10: Debugging and Logging
Debugging a Play application
Experimenting in a Scala console
Logging
Play's logging API
Log configuration in Play
Summary
Chapter 11: Web Services and Authentication
Calling web services
OpenID
OAuth
Summary
Chapter 12: Play in Production
Deploying a Play application
Configuring for production
Enabling SSL
Using a load balancer
Troubleshooting
Summary
Chapter 13: Writing Play Plugins
Plugin definition
Plugin declaration
Exposing services through plugins
Tips for writing a plugin
Summary

Book Details

ISBN 139781783983803
Paperback274 pages
Read More
From 1 reviews

Read More Reviews