Cover image for Developing on Play Framework 2.
Developing on Play Framework 2.
Title:
Developing on Play Framework 2.
Author:
Petrella, Andy.
ISBN:
9781782160137
Personal Author:
Physical Description:
1 online resource (295 pages)
Contents:
Learning Play! Framework 2 -- Table of Contents -- Learning Play! Framework 2 -- Credits -- About the Author -- Acknowledgement -- About the Reviewers -- www.packtpub.com -- Support files, e-books, discount offers, and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Getting Started with Play! Framework 2 -- Preparing your machine -- Downloading the package -- Installing -- Microsoft Windows -- Mac OS X -- Ubuntu -- The Typesafe Stack -- Checking if it's okay in your terminal -- Creating your first project -- Keeping your habits -- Using Eclipse -- Eclipse Juno -- Using Scala IDE -- IntelliJ IDEA -- Sublime Text 2 -- Simple Build Tool -- Adding a third-party dependency -- Repositories -- It's alive and not empty! -- Browsing the Java API -- Understanding the core pieces -- Routing -- Action -- Similarities between the Java and Scala action code -- Differences between the Java and Scala action code -- Templates -- Practicing -- Modifying the template -- Modifying the controller -- Modifying the content type to JSON -- Browsing our errors -- Summary -- 2. Scala - Taking the First Step -- Introducing Scala -- Expressing your code -- If-else -- Switch/Pattern matching -- Generic types -- Iterating over a sequence -- Function - foreach -- Function - map -- Function - filter -- Function - exists -- Function - find -- Function - apply -- Other interesting functions -- Partial application -- Summary -- 3. Templating Easily with Scala -- Shape it, compose it, re-use it -- Creating our first template -- Structuring it -- Adding content -- Composing templates -- Passing data structures -- Playing around -- Laying out.

Using domain models -- Re-using our code -- Skinning with LESS pain -- Summary -- 4. Handling Data on the Server Side -- Feeding some data -- Forming a (server) form -- Ingesting data -- Extracting the data -- Enhancing your data -- Validating our data -- Persisting them -- Activating a database -- Accessing the database -- Object-relational mapping -- Storing and fetching - a simple story -- Porting to Scala -- Models -- Parsing the DB result -- Speaking with the browser -- Summary -- 5. Dealing with Content -- Body parsing for better reactivity -- Creating a forum -- Reorganizing and logging in -- Chatting -- Handling multipart content types -- Rendering contents -- Imaging all of the chat -- Atomizing the chats -- Summary -- 6. Moving to Real-time Web Applications -- Ready, JSON, poll -- Configuring a dashboard -- Some sugar with your Coffee(Script) -- Words about CoffeeScript's syntax -- Explaining CoffeeScript in action -- Rendering the dashboard -- Updating the dashboard in live mode -- Dynamic maintains form -- Real time (advanced) -- Adding WebSocket -- Receiving messages -- Multiplexing events to the browser -- Live multichatting -- Summary -- 7. Web Services - At Your Disposal -- Accessing third parties -- Interacting with Twitter -- Using the Twitter API -- Integrating chatrum with Twitter search -- Long tasks won't block -- Summary -- 8. Smashing All Test Layers -- Testing atomically -- Running our atomic tests -- Writing applicative tests -- Testing workflows -- Summary -- 9. Code Once, Deploy Everywhere -- Continuous Integration (CloudBees) -- Deployment (Heroku) -- Monitoring (Typesafe Console) -- Summary -- A. Introducing Play! Framework 2 -- Why do we need Play! Framework? -- Framework for the Web -- Not JEE-based, but JVM -- Underlying ideas and concepts -- Reactive -- NIO server -- Asynchronous -- Iteratee -- Wrap up -- What's new?.

Scala -- Simple Build Tool -- Templates -- Assets -- Amazing goodies -- HTML5 -- External services -- Form validation -- Hot reloading -- Only two tools - IDE and browser -- Summary -- B. Moving Forward -- More features -- Plugin -- Global -- Session, cache, and i18n -- Frontend languages -- Scala-specific -- Ecosystem -- C. Materials -- Index.
Abstract:
A strong focus is placed on explanation by example; even with the amount of amazing capabilities of Play! 2, they will be gathered in a single application. At the end of this book, the reader will have a fully-fledged application using the basic and advanced features of Play! 2.Readers must be interested in the Web in general; specifically using the HTTP between a browser and a server to create blazing projects!Java skills are beneficial but not necessary since Play! Framework 2 is not J2EE based but introduces a simple, neat, and completely integrated version; the prerequisites are almost none.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: