Messages & Pictures

Lab 11 Exercises

Solutions to the exercises from Lab 11

Spacebook Review

A complete look at the Spacebook application, with a focus in the structure of the Play Framework, the routes and the controllers.

Messages

A key feature of spacebook is to emable users to leave messages for their friends. This will require a new Model class to represent individual Message objects, new actions in our Profile controller + new features in our templates.

Pictures

The final feature of Spacebook is to facilitate an image upload form a user Profile page. This will need an extension to the User model + a new action and template fragment.

Assignment 2

This is the specification for Assignment 2. You can either pursue a project using a (new) CSS framework, or attempt a set of stories in the Spacebook/Play project.

Lab-11

Convert the remaining 'name' based routes to 'id. Introduce a new model class to represent messages and incorporate messaging write/read into the controllers/views. Finally, introduce support for image upload/download