Samples
There are a number of sample applications that illustrate how Project Zero features are used. You can extend any of these samples to build your own Project Zero application. The following Project Zero sample applications are available and described in this article.
books.demo
The books demo is a an Atom-based application, including server-side (
zero.atom) and client-side (
ibm_atom Dojo extension) support. More information about the employee demo is available in the
Books demo article. The application can also be installed with the command line using the following command:
% zero install zero:books.demo
employee.demo
The employee demo application demonstrates REST concepts and Project Zero's capabilities to manage records. The employee demo sample manages employee data records including listing, creating, editing and deleting these records. It uses the following features:
- Resource handling
- Groovy scripting
- Data access
- JSON APIs and rendering
- Groovy templates
- Client programming with Dojo
The employee demo is available from the
Project Zero download page under the
Project Zero Eclipse plug-in for Java and Groovy users section.
More information about the employee demo is available in the
Employee demo article. Instructions for installing the employee demo and other samples are available in the
Installing and configuring: Eclipse for Java and Groovy section of the
Getting Started Guide. Additional post-install steps are documented in the README.TXT file in the Employee Demo folder.
The application can also be installed with the command line using the following command:
% zero install zero:employee.demo
employee.resource.demo
The employee resource demo application demonstrates simplified resource handling with the Project Zero resource model (ZRM) extension. This application is a variation of the
employee.demo application. For more information about the Project Zero resource model, see the
Project Zero resource model overview article.
The application can be installed using the command line with following command:
% zero install zero:employee.resource.demo
officemonitor
The office monitor application can be used by members of an organization to track absences and provide contact information. The purpose of this application is to illustrate the Project Zero programming model, Dojo constructs like drag and drop,and how the resources on the server side can be managed and manipulated in the browser. The office monitor application is developed in PHP on the Project Zero platform.
In the office monitor application, each new member adds himself to the organization and can then update his whereabouts and provide information on how others can contact him. The application also allows any member to set up virtual teams through the team menu. The composition of a team can be changed by dragging and dropping members into these teams. Members can opt to receive email notifications when specific members or members of a specific team are not going to be in the office.
The application can be installed using the command line with the following command:
% zero install zero:officemonitor
openid.demo
The
openid.demo is a sample application that demonstrates leveraging
openid in Project Zero. The
openid.demo application was also used as the basis for manually testing
openid as well as a DeveloperWorks article.
The application can be installed using the command line with the following command:
% zero install zero:openid.demo
phpemployee.demo
The PHP employee demo uses RESTful resources to provide an interface for managing employee data. The PHP employee demo provides an interface for managing employee data, such as listing, creating, editing and deleting employee records. Some features of the employee demo include:
- Automatic resource handling
- PHP scripting
- JSON APIs and rendering
- Data access
- Client programming with Dojo
For instructions on creating this demo, in Eclipse, see the
A simple PHP Project Zero tutorial article.
The application can be installed using the command line with the following command:
% zero install zero:phpemployee.demo
simpletodo
The simple to do list is a simple Project Zero application that manages a to do list. The simple to do list is a single user application the data of which is held in memory and is not persistent. You can use either Eclipse or the command line for this application. The
To do list Part I - Simple to do tutorial walks you through the process of creating this application.
The application can be installed using the command line with the following command:
% zero install zero:simpletodo
simpletodo2
The
simpletodo2 sample extends the
simpletodo sample with AJAX and RESTful resources. Having created the simple to do list application, you can enhance it using RESTful resources and AJAX. For more information about REST, see the
Wikipedia article about REST. For more information about the simpletodo2 sample, see the
To do list part II - REST and AJAX article.
The simpletodo2 sample is dependent on the
simpletodo sample.
The application can be installed using the command line with the following command:
% zero install zero:simpletodo2
simpletodo3
The simpletodo3 package is a tutorial that introduces database access and Dojo. For information on using this package, see the
To do list part III - Data and Dojo article in the Project Zero
Getting Started Guide.
The application can be installed using the command line with the following command:
% zero install zero:simpletodo3
simpletodo4
The simpletodo4 package is a tutorial that secures the todolist application, enabling user authentication and controlling access.
For information on using this package, see the
To do list part IV - Security article in the Project Zero
Getting Started Guide.
The application can be installed using the command line with the following command:
% zero install zero:simpletodo4