kirra-ui is a collection of generic clients for applications that expose their domain model as a Kirra-compliant REST API.
kirra-angular is a kirra-ui implementation based on HTML5/JavaScript(Angular).
kirra-angular provides a generic Angular admin application that renders a UI dynamically based on the application schema that is discovered using the back-end (Kirra-based) REST API.
kirra-angular is not limited to basic CRUD. Besides basic UI elements for CRUD, kirra-angular also exposes actions and queries, typical in richer domain models.
For Kirra-based APIs, no custom code has to be written to produce a kirra-angular-based UI. Just publish it to a static web server, and load it on the browser pointing it to your application back-end using the app-path or app-uri query parameters:
http://myserver.org/kirra-angular?app-uri=<my-kirra-application-uri>
See URIs for the live demos below.
For non-Kirra-based APIs, depending on how rich your API is, you should be able to plug a custom angular service to map between the Kirra-based format and your application's format.
This is still in early development, many features are missing. You can try it out against any Cloudfier-based application using URLs like these:
- Taxi Fleet
- Expenses (log in as employee1@abstratt.com, employee2@abstratt.com or approver1@abstratt.com, password 'pass')
- Ship It
- Car rental
- CarServ (log in as admin@abstratt.com, mechanic1@abstratt.com - up to mechanic5@abstratt.com, customer1@abstratt.com u to customer6@abstratt.com, password 'pass')
- Cesta de Compras - shows customizations based on an off-the-shelf template.
These Java EE apps were fully generated from Cloudfier applications (no handwritten code) but look like typical standalone code you would write by hand. See code for all generated Java EE apps here.
This video shows kirra-angular in action:
For each top-level entity defined in the application, a menu entry is rendered at the top of the screen. This menu entry takes the user to the list view for the corresponding entity.
The list view is a table showing (by default) all instances of that entity, with no filtering.
From a list view, you can open the details for any of the instances. The details view shows the basic data, child objects, relationships and any (instance-level) actions available.
From the detail view, you can open the edit view to edit the instance details.
When an entity describes instance actions, they are triggerable from the details view, and from the list view.
When an entity defines an entity-level action (a.k.a. static operation), the actions are exposed in the list view.
Entities may define queries, which are also exposed in the list UI.
When a query prescribes parameters, users must provide them before the query can be executed.
kirra-angular is distributed under the Eclipse Public License.
kirra-angular requires angular, bootstrap, angular-bootstrap and angular-ui-router.
Kirra Qooxdoo was an earlier implementation of a HTML/Javascript-based Kirra client, and is no longer being developed.