X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FCatalystBasics.pod;h=ee43d241022dfb550ea3b12d1048d5a2cbda222b;hb=45569686c8d290df9fb4bd6a89ec1fcf6b5bbcb2;hp=47f796457bc1ff5386a6e910913b604202fe118f;hpb=653f459563a5365bdc7859f2dab489980a765214;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod index 47f7964..ee43d24 100644 --- a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod @@ -45,10 +45,11 @@ L =item 9 -L +L =back + =head1 DESCRIPTION In this part of the tutorial, we will create a very basic Catalyst web @@ -102,24 +103,29 @@ to persist and restore objects to/from a relational database. =back -B: Note that all of the code for this part of the tutorial can be -pulled from the Catalyst Subversion repository in one step with the -following command: - - svn checkout http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial@### - IMPORTANT: Does not work yet. Will be completed for final version. - +You can checkout the source code for this example from the catalyst +subversion repository as per the instructions in +L =head1 CREATE A CATALYST PROJECT Catalyst provides a number of helper scripts that can be used to quickly flesh out the basic structure of your application. All Catalyst projects -begin with the C helper. +begin with the C helper (see L +for more information on helpers). Also note that as of Catalyst 5.7000, +you will not have the helper scripts unless you install both +L and L. In the case of this tutorial, use the Catalyst C script to initialize the framework for an application called C: $ catalyst.pl MyApp + created "MyApp" + created "MyApp/script" + created "MyApp/lib" + created "MyApp/root" + ... + created "MyApp/script/myapp_create.pl" $ cd MyApp The C helper script will display the names of the @@ -129,12 +135,59 @@ Though it's too early for any significant celebration, we already have a functioning application. Run the following command to run this application with the built-in development web server: - $ script/myapp_server.pl + $ script/myapp_server.pl + [debug] Debug messages enabled + [debug] Loaded plugins: + .----------------------------------------------------------------------------. + | Catalyst::Plugin::ConfigLoader 0.13 | + | Catalyst::Plugin::Static::Simple 0.14 | + '----------------------------------------------------------------------------' + + [debug] Loaded dispatcher "Catalyst::Dispatcher" + [debug] Loaded engine "Catalyst::Engine::HTTP" + [debug] Found home "/home/me/MyApp" + [debug] Loaded Config "/home/me/myapp.yml" + [debug] Loaded components: + .-----------------------------------------------------------------+----------. + | Class | Type | + +-----------------------------------------------------------------+----------+ + | MyApp::Controller::Root | instance | + '-----------------------------------------------------------------+----------' + + [debug] Loaded Private actions: + .----------------------+--------------------------------------+--------------. + | Private | Class | Method | + +----------------------+--------------------------------------+--------------+ + | /default | MyApp::Controller::Root | default | + | /end | MyApp::Controller::Root | end | + '----------------------+--------------------------------------+--------------' + + [info] MyApp powered by Catalyst 5.7002 + You can connect to your server at http://localhost:3000 + +B: Be sure you run the C