Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jk2addict (4946)

jk2addict
  (email not shown publicly)
http://today.icantfocus.com/blog/
AOL IM: chrislaco (Add Buddy, Send Message)
Yahoo! ID: chrislaco@sbcglobal.net (Add User, Send Message)
Jabber: laco@scribblewerks.com

Journal of jk2addict (4946)

Saturday November 11, 2006
10:55 PM

A long exercise in quickstart magic

[ #31579 ]

One of the last things I have on the list before Handel 1.0 is let loose upon the world was to get the QuickStart.pod in order. Before that can be done, I actually need to make a quick start possible. :-)

Handel already has Catalyst helpers to generate start scaffolding for cart/order/checkout pages and to add just pieces and parts to an existing Cat app. And a few weeks ago, I created Module::Starter::Handel to auto generate the recommended non-catalyst subclasses.

Today was an effort on marrying the two.

For users not interested in Cat (WTF?), you can:

handel MyApp
cd MyApp
script/myapp_setup.pl dbi:foo:bar

That creates the recommended subclasses and installs the schema using DBICs deploy(). Just make install that new package, and you're off to the races with your own setup.

For Cat users, it's just:

catalyst MyApp
cd MyApp
script/myapp_create.pl Handel dbi:foo:bar
script/myapp_createdb.pl dbi:foo:bar
script/myapp_server.pl

Much like the first version, that just installs all of the Cat helpers + the non-cat subclasses in one step.

In both, the installation/creation of the database is a seperate step. This gives you a chance to alter the subclasses (change a table name, add a column), then deploy the modified schema.

There is one manual step in Cat code. You must manually add the Session plugins to MyApp.pm.

Not perfect, but it's better than what I have now: answering the same 'how do I get started' questions over and over. :-)

&bedtime

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.