Code Monkey home page Code Monkey logo

ping-play's Introduction

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.

ping-play's People

Contributors

brikis98 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.