NAME CatalystX::ListFramework::Builder - Instant AJAX web front-end for DBIx::Class, using Catalyst VERSION This document refers to version 0.31 of CatalystX::ListFramework::Builder WARNING This is an *ALPHA RELEASE*. I'd really appreciate any bug reports; you can use the CPAN RT bug tracking system, or email me (Oliver) directly at the address at the bottom of this page. Please also be aware that the configuration file content has changed from previous releases of the module. PURPOSE You have a database, and wish to have a basic web interface supporting Create, Retrieve, Update, Delete and Search, with little effort. This module, with only a few lines of configuration, is able to create such interfaces on the fly. They are a bit whizzy and all Web 2.0-ish. SYNOPSIS A configuration file somewhere on your system: # [listframeworkuser.conf] in Config::General format extjs2 /javascript/extjs-2 schema_class My::Database::Schema connect_info dbi:Pg:dbname=mydbname;host=mydbhost.example.com; connect_info username connect_info password AutoCommit 1 And in the CGI area of your web server: package ListFrameworkUser; use Catalyst qw(ConfigLoader +CatalystX::ListFramework::Builder); __PACKAGE__->setup; 1; Now going to the CGI area's URL will display a list of the tables in your database. Each item is a link to the web interface for that table. DESCRIPTION This module contains an application which will automatically construct a web interface for a database on the fly. The web interface supports Create, Retrieve, Update, Delete and Search operations. The interface is not written to static files on your system, and uses AJAX to act upon the database without reloading your web page (much like other Web 2.0 appliactions, for example Google Mail). Almost all the information required by the application is retrieved from the DBIx::Class ORM frontend to your database, which it is expected that you have already set up (although see "USAGE", below). This means that any change in database schema ought to be reflected immediately in the web interface after a page refresh. USAGE Pre-configuration You'll need to download the ExtJS Javascript Library (version 2.2+ recommended), from this web page: . Install it to your web server in a location that it is able to serve as static content. Make a note of the path used in a URL to retrieve this content, as it will be needed in the application configuration file, below. Scenario 1: Plugin to an existing Catalyst App This mode is for when you have written your Catalyst application, but the Views are catering for the users and as an admin you'd like a more direct, secondary web interface to the database. package ListFrameworkUser; use Catalyst qw(ConfigLoader +CatalystX::ListFramework::Builder); __PACKAGE__->setup; 1; Adding "CatalystX::ListFramework::Builder" (LFB) as a plugin to your Catalyst application, as above, causes it to scan your existing Models. If any of them are built using Catalyst::Model::DBIC::Schema, they are automatically loaded. You still need to provide a small amount of configuration: extjs2 /javascript/extjs-2 PathPart admin First the application needs to know where your copy of ExtJS is, on the web server. Use the "extjs2" option as shown above to specify the URL path to the libraries. This will be used in the templates in some way like this: