Documentation

You are viewing the documentation for the 2.2.1 release in the 2.2.x series of releases. The latest stable release series is 3.0.x.

§Sample applications

The Play binary package comes with a comprehensive set of sample applications written in both Java and Scala. This is a very good place to look for code snippets and examples.

The sample applications are available in the samples/ directory of your Play installation.

§Hello world

This is a very basic application that demonstrates Play fundamentals:

§Computer database

This is a classic CRUD application, backed by a JDBC database. It demonstrates:

Twitter Bootstrap requires a different form layout to the default layout provided by the Play form helper, so this application also provides an example of integrating a custom form input constructor.

§Forms

This is a dummy application presenting several typical form usages. It demonstrates:

§ZenTasks

This advanced todo list demonstrates a modern Ajax-based web application. This is a work in progress, and we plan to add features in the future releases. For now you can check it out to learn how to:

§CometClock

This a very simple Comet demonstration pushing clock events from the server to the Web browser using a the forever-frame technique. It demonstrates how to:

§WebSocket chat

This application is a chat room, built using WebSockets. Additionally, there is a bot used that talks in the same chat room. It demonstrates:

§Comet monitoring

This mobile web application monitors Play server performance. It demonstrates:

 

Next:

Play for Scala developers
Play for Java developers