Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Handel::Manual::QuickStart 1.00009

    Download button

    No screenshots available
    Downloads: 439  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    13 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Christopher H. Laco | More programs
    Perl Artistic License / FREE
    January 28th, 2008, 14:58 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Handel::Manual::QuickStart description

    Handel::Manual::QuickStart it's a quick start guide to getting Handel up and running.

    Handel::Manual::QuickStart it's a quick start guide to getting Handel up and running.

    This guide is meant for those who want to get a shopping cart up and running as quickly as possible using Handel as a stand alone set of classes, as a complete Catalyst application, or as an addition to an existing Catalyst application.

    INSTALLATION

    See Handel::Manual::Requirements for the list of requirements needed for Handel to run properly. These should be installed automatically by CPAN or CPANPLUS.

    CPAN
    $ cpan -i Handel
    CPANPLUS
    $ cpanp -i Handel

    NO CUSTOMIZATION

    If you don't plan on customizing the default schema or classes, then you're done. Simply use the stock classes in your existing program as you would any other CPAN module.

    STAND ALONE APPLICATIONS

    If you plan on customizing the default schema (adding columns, changing table names, etc), it is recommended that you create your own set of subclasses, and customize those instead of altering the behaviour of the Handel classes themselves.

    To create a new application with Handel classes, run handel: and give it a new application name:

    $ handel MyApp

    Created MyApp
    Created MyApplib
    Created MyApplibMyApp.pm
    Created MyApplibMyApp
    Created MyApplibMyAppCart.pm
    Created MyApplibMyAppCart
    Created MyApplibMyAppCartItem.pm
    Created MyApplibMyAppStorage
    Created MyApplibMyAppStorageCart.pm
    Created MyApplibMyAppStorageCart
    Created MyApplibMyAppStorageCartItem.pm
    Created MyApplibMyAppOrder.pm
    Created MyApplibMyAppOrder
    Created MyApplibMyAppOrderItem.pm
    Created MyApplibMyAppStorageOrder.pm
    Created MyApplibMyAppStorageOrder
    Created MyApplibMyAppStorageOrderItem.pm
    Created MyApplibMyAppCheckout.pm
    Created MyAppt
    Created MyApptpod_syntax.t
    Created MyApptpod_spelling.t
    Created MyApptbasic.t
    Created MyApptpod_coverage.t
    Created MyApp.cvsignore
    Created MyAppMakefile.PL
    Created MyAppMANIFEST
    Created MyAppscriptmyapp_handel.pl
    Created starter directories and files

    This creates a new CPAN style distribution with all of the recommended Handel subclasses. If you need to change any table names, or add columns, etc, simply alter the various Storage classes using the options in Handel::Storage::DBIC. For example, if you wanted to change the carts table to be named myapp_carts instead, add this to MyApp::Storage::Cart:
    __PACKAGE__->table_name('myapp_carts');

    Once you are done customizing the storage classes, we need to install the database schema. To do that, run the setup script created in the step above, passing it the DBI dsn /user/pass for the database you wish to install into.

    Note: The database you specify must already exist and you need to use a user/password that has permissions to create tables.

    $ cd MyApp
    $ perl script/myapp_handel.pl schema --install --dsn dbi:mysql:handel:localhost --user myuser --pass mypass
    Installed/created database schema

    If you want to use a local SQLite database, you can simply pass the --default option which will create a database in MyApp/data/handel.db

    $ cd MyApp
    $ perl script/myapp_handel.pl schema --install --default
    Installed/created database schema

    Now, simply treat the newly created code as any other CPAN distribution:

    $ perl Makefile.PL
    $ make
    $ make test
    $ make install

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Handel guide | Handel tutorial | Perl module | Handel | guide | manual

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM