Skip to content
opensas edited this page Jan 3, 2012 · 19 revisions

Welcome to the play-demo wiki!

Play-demo is a play! framework project built for demoing play's capabilities and to provide a detailed step-by-step guide to get you up and running with play framework.

The demo application is up and running in red hat's openshift at http://play-opensas.rhcloud.com/, in google application engine at http://jugar-demo.appspot.com/, in heroku at http://jugar-demo.herokuapp.com/ and in cloudbees at http://play.opensas.cloudbees.net/#, for you to try it online.

This project is hosted here, on github, for anyone to study, learn and improve.

Moreover, the demo has been organized in several steps, each with it's own github branch, so that you can follow us in our journey.

This demo was first presented at Argentina java user group, along with this slide

Prerequisites:

  • Be willing to have fun once again developing web applications with java!
  • Working java installation
  • Install play framework.

For more information, see setting up your development environment


Step 0 - create an empty project

Here we show how to create a project and we talk about the structure of a play application

Step 1 - my first controller

Show live editing capabilities of play framework and it's error reports for human beings

Step 2 - working with models

First we show you how to configure your favorite IDE and then we create a couple of entities and persist them to database.

Step 3 - populating data

In this section we cover differents ways to load your database with info. We take a look at play's integrated db manager, the crud module and fixtures support.

Step 4 - styling

We give our app a better appearence using twitter's bootstrap toolkit.

Step 5 - actions

In this step we will develop add, update and delete actions

Step 6 - styling form

Add twitter bootstrap styles to the create and update form. We will also develop a couple of custom tags to avoid repetitive code.

Step 7 - ajaxed countdown

Here we'll add a count down, showing the time remaining for the next event. We will also show how to use your own libraries and how to make them get along with play's dependencies system.

Step 8 - pretify urls

We will see how play helps us build human readeble and elegants urls.

Step 9 - authentication

In this step we will see how our user can authenticate themselves using facebook or twitter.

Step 10 - authorization TO DO!!!

How to protect pages and allow certain actions only to authenticated users.

Step 11 - internationalizing

In this step we will see how to prepare your application to support different languages.

Step 12 - testing it all

We will see how to build automated tests.

Step 12.5 - deploy to openshift

Deploying our app to openfhit, Red Hat's cloud computing PaaS platform.

Step 13 - deploy to heroku

Deploying our app to heroku's cloud computing platform.

Step 14 - deploy to gae

Deploying our app to google's application engine cloud computing platform

Step 15 - next steps TO DO!!!

Here we will talk about the next steps you can make to keep learning and having fun with play! framework.