=over 4
-=item *
+=item *
A simple application that lists and adds books.
some of the more advanced techniques you will probably want to use in
your applications).
-=item *
+=item *
How to write CRUD (Create, Read, Update, and Delete) operations in
Catalyst.
Authentication ("auth").
-=item *
+=item *
Role-based authorization ("authz").
-=item *
+=item *
Attempts to provide an example showing current (5.9) Catalyst
practices.
-=item *
+=item *
The use of Template Toolkit (TT).
-=item *
+=item *
Useful techniques for troubleshooting and debugging Catalyst
applications.
-=item *
+=item *
The use of SQLite as a database (with code also provided for MySQL and
PostgreSQL). (Note: Because we make use of the DBIx::Class Object
agnostic and can easily be used by any of the databases supported by
DBIx::Class.)
-=item *
+=item *
The use of L<HTML::FormFu> or L<HTML::FormHandler>
for automated form processing and validation.
=over 4
-=item 1
+=item 1
Download a Tutorial Virtual Machine image from
L<http://cattut.shadowcat.co.uk/>
...
You want the IP address on the second line below the C<eth0> interface.
-The image it design to automatically use a DHCP-assigned address.
+The image is designed to automatically use a DHCP-assigned address.
Try to ping this IP address from your "host machine" (main desktop):
If you have a preference for the Gnome desktop environment, you can do:
$ sudo aptitude update
- $ sudo ptitude install gnome iceweasel
+ $ sudo aptitude install gnome iceweasel
$
$ # You can reboot or start with 'startx', we will just reboot here
$ reboot
- $ sudo aptitude install kde iceweasel
+For KDE, just substitute the package name "C<kde>" for "C<gnome>" above.
-For KDE, just substitude the package name "C<kde>" for "C<gnome>" above.
+ $ sudo aptitude install kde iceweasel
Note that C<iceweasel> is basically used to install Firefox on Debian
boxes. You can start it under X Windows with either the C<firefox>
Also, you might need to add more memory to your virtual machine if you
want to run X Windows (or other tools that might require additional
-memory). Consult the documentation for you virtualization software
+memory). Consult the documentation of your virtualization software
for instructions on how to do this (it's usually pretty simple).
recommend that you also consider using this very handy module. It can
greatly ease the process of maintaining and testing different
combinations or Perl modules across development, staging, and production
-servers. (The "relocatable Perl" feature can also be used to to run
+servers. (The "relocatable Perl" feature can also be used to run
both the modules B<and> Perl itself from your home directory [or any
other directory you chose]).
=item *
-L<http://vmfaq.com/entry/34/>
+L<http://vmfaq.com/index.php?View=entry&EntryID=34>
=item *
=over 4
-=item *
+=item *
Debian 6 (Squeeze)
-=item *
+=item *
Catalyst v5.90002
Catalyst::Devel v1.34
-=item *
+=item *
DBIx::Class v0.08195
HTML::FormFu -- v0.09004
-=item *
+=item *
B<NOTE:> You can check the versions you have installed with the
following command (note the slash before the space):
perl -MCatalyst::Devel -e 'print "$Catalyst::Devel::VERSION\n";'
-=item *
+=item *
This tutorial will show URLs in the format of C<http://localhost:3000>,
but if you are running your web browser from outside the Tutorial
eth0 from the C<ifconfig> command). For example, if your VM has an
IP address of 192.168.0.12, you will want to use a base URL of
C<http://192.168.0.12:3000>. Note that the development server
-defaults to port 3000 (you can change with with the "-p" option on the
-command line.
+defaults to port 3000 (you can change with the "-p" option on the
+command line).
B<Please Note:> Depending on the web browser you are using, you might
need to hit C<Shift+Reload> or C<Ctrl+Reload> to pull a fresh page when