Description |
1 online resource |
Series |
Community experience distilled |
|
Community experience distilled.
|
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 |
|
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 |
Notes |
English |
|
Print version record |
Subject |
Application software -- Development.
|
|
Internet programming.
|
|
Open source software.
|
|
COMPUTERS -- Desktop Applications -- General.
|
|
Application software -- Development.
|
|
Internet programming.
|
|
Open source software.
|
|
Programmation sur Internet.
|
|
Progiciels -- Développement.
|
|
Logiciels libres.
|
Form |
Electronic book
|
ISBN |
9781783982417 |
|
1783982411 |
|
9781322166148 |
|
1322166145 |
|
1783982403 |
|
9781783982400 |
|