Amazon cover image
Image from Amazon.com

Play framework essentials : an intuitive guide to creating easy-to-build scalable web applications using the Play framework / Julien Richard-Foy.

By: Material type: TextTextSeries: Community experience distilledPublication details: Birmingham : Packt Publishing, 2014.Description: 1 online resourceContent type:
  • text
Media type:
  • computer
Carrier type:
  • online resource
ISBN:
  • 9781783982417
  • 1783982411
  • 9781322166148
  • 1322166145
  • 1783982403
  • 9781783982400
Subject(s): Genre/Form: Additional physical formats: Print version:: Play framework essentials : an intuitive guide to creating easy-to-build scalable web applications using the Play framework.DDC classification:
  • 005.365 23
LOC classification:
  • QA76.76.A65
Online resources:
Contents:
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Building a Web Service; Play -- a framework used to write web applications; Bootstrapping a Play application; Play applications'' layout; URL routing; Route path parameters; Parameters type coercion; Parameters with fixed values; Query string parameters; Default values of query string parameters; Trying the routes; Building HTTP responses; Serializing application data in JSON; Reading JSON requests; Validating JSON data; Handling optional values and recursive types.
Using an in-memory database for testsSummary; 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; Inserting dynamic values; Looping and branching; Reusing document fragments; Comments; Import statements; Generating HTML forms; Repeated and nested fields; Reading and validating HTML form data; Handling the HTML form submission; Validating the HTML form data; The Scala form validation API; The Java form validation API; Optional and mandatory fields.
Sharing JSON validation and HTML form validation rulesHandling 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; Sprinkling some JavaScript and CSS; Using the JavaScript reverse router; Managing assets from the build system; Producing web assets; Pipelining web assets'' transformations; Concatenating and minifying JavaScript files; Gzipping assets; Fingerprinting assets; Managing JavaScript dependencies.
Running JavaScript testsSummary; 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; Unidirectional streaming with server-sent events; Preparing the ground; Transforming streams of data using enumeratees; Implementing a publish/subscribe system using Akka; Bidirectional streaming with WebSockets.
Summary: Chapter 2: Persisting Data and Testing; Testing your web service; Writing and running tests; Testing the HTTP layer; Using the reverse router to generate URLs; Running a fake Play application; Effectively writing HTTP tests; Persisting data; Using a relational database; Getting a reference to the currently running application; Using a database management library; Using Slick in Scala; Using JPA in Java; Integrating with other persistence technologies; Populating the database with fixtures; The application''s Global object; Managing database schema evolutions.Summary: This book targets Java and Scala developers who already have some experience in web development and who want to master Play framework quickly and efficiently. This book assumes you have a good level of knowledge and understanding of efficient Java and Scala code.
Item type:
Tags from this library: No tags from this library for this title. Log in to add tags.
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Home library Collection Call number Materials specified Status Date due Barcode
Electronic-Books Electronic-Books OPJGU Sonepat- Campus E-Books EBSCO Available

Print version record.

Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Building a Web Service; Play -- a framework used to write web applications; Bootstrapping a Play application; Play applications'' layout; URL routing; Route path parameters; Parameters type coercion; Parameters with fixed values; Query string parameters; Default values of query string parameters; Trying the routes; Building HTTP responses; Serializing application data in JSON; Reading JSON requests; Validating JSON data; Handling optional values and recursive types.

Using an in-memory database for testsSummary; 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; Inserting dynamic values; Looping and branching; Reusing document fragments; Comments; Import statements; Generating HTML forms; Repeated and nested fields; Reading and validating HTML form data; Handling the HTML form submission; Validating the HTML form data; The Scala form validation API; The Java form validation API; Optional and mandatory fields.

Sharing JSON validation and HTML form validation rulesHandling 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; Sprinkling some JavaScript and CSS; Using the JavaScript reverse router; Managing assets from the build system; Producing web assets; Pipelining web assets'' transformations; Concatenating and minifying JavaScript files; Gzipping assets; Fingerprinting assets; Managing JavaScript dependencies.

Running JavaScript testsSummary; 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; Unidirectional streaming with server-sent events; Preparing the ground; Transforming streams of data using enumeratees; Implementing a publish/subscribe system using Akka; Bidirectional streaming with WebSockets.

Chapter 2: Persisting Data and Testing; Testing your web service; Writing and running tests; Testing the HTTP layer; Using the reverse router to generate URLs; Running a fake Play application; Effectively writing HTTP tests; Persisting data; Using a relational database; Getting a reference to the currently running application; Using a database management library; Using Slick in Scala; Using JPA in Java; Integrating with other persistence technologies; Populating the database with fixtures; The application''s Global object; Managing database schema evolutions.

This book targets Java and Scala developers who already have some experience in web development and who want to master Play framework quickly and efficiently. This book assumes you have a good level of knowledge and understanding of efficient Java and Scala code.

eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - Worldwide

There are no comments on this title.

to post a comment.

O.P. Jindal Global University, Sonepat-Narela Road, Sonepat, Haryana (India) - 131001

Send your feedback to glus@jgu.edu.in

Hosted, Implemented & Customized by: BestBookBuddies   |   Maintained by: Global Library