Skip to content

Sample code for Jim Brikman's presentation "Composable and streamable Play apps" at Ping Conference 2014

License

Notifications You must be signed in to change notification settings

mikepigott/ping-play

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping-Play

This is a sample app for the Composable and streamable Play apps talk at Ping Conference 2014. A recording of the talk, which includes live coding demos with this sample app, is available on ustream.

The code shows some examples of how to:

  1. Compose standalone endpoints (controllers) to build a more complex page from simpler parts
  2. A prototype of Facebook's BigPipe for Play: that is, tools to break a page into "pagelets" and stream each pagelet to the browser as soon as the data is available.

This is just prototype code, intended for demonstration and education. There are no tests, so I wouldn't recommend tossing it directly into production :)

How to run the app

This is a standard Play Framework app, built on Play 2.2.1. To run it, install Play and do play run.

How to browse the code

The main example code to look:

  1. app/controllers/Wvyp and app/controllers/Wvyu show a simple, standalone modules.
  2. app/controllers/Aggregator shows how these modules can be combined to build a more complicated module.
  3. app/controllers/WvypStream shows how to stream the contents of a module using a BigPipe approach.
  4. app/ui contains reusable library for composing modules and streaming HTML.

License

This code is available under the MIT license. See the LICENSE file for more info.

About

Sample code for Jim Brikman's presentation "Composable and streamable Play apps" at Ping Conference 2014

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 87.1%
  • Java 8.9%
  • CSS 4.0%