From: Andrew Ford Date: Mon, 4 Apr 2005 07:53:08 +0000 (+0000) Subject: expanded tutorial X-Git-Tag: 5.7099_04~1604 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=b460ad78a952bcaaa8f468d6e578c17002d0645b expanded tutorial --- diff --git a/lib/Catalyst/Manual/Tutorial.pod b/lib/Catalyst/Manual/Tutorial.pod index 01819d8..dea503e 100644 --- a/lib/Catalyst/Manual/Tutorial.pod +++ b/lib/Catalyst/Manual/Tutorial.pod @@ -6,10 +6,9 @@ Catalyst::Manual::Tutorial - Getting started with Catalyst This document aims to get you up and running with Catalyst. -NOTE: THIS DOCUMENT IS STILL VERY MUCH AT AN ALPHA STAGE. +NOTE: THIS DOCUMENT IS STILL VERY MUCH IN AN EARLY DRAFT STATE. SEE THE NOTES +AT THE BOTTOM OF THE DOCUMENT. -Please send comments, corrections and suggestions for improvements to -A.Ford@ford-mason.co.uk =head2 Installation @@ -54,7 +53,7 @@ application for you: created "My-App/script/test.pl" created "My-App/script/create.pl" -This creates the directory structure shown. +This creates the directory structure shown, populated with skeleton files. @@ -65,13 +64,16 @@ catalyst provides: $ cd My-App $ script/server.pl - [Sun Mar 20 12:31:18 2005] [catalyst] [debug] Debug messages enabled - [Sun Mar 20 12:31:18 2005] [catalyst] [debug] Loaded engine "Catalyst::Engine::CGI" - [Sun Mar 20 12:31:18 2005] [catalyst] [debug] Initialized components "" - [Sun Mar 20 12:31:18 2005] [catalyst] [info] My::App powered by Catalyst 4.26 - [Sun Mar 20 12:31:18 2005] [catalyst] [debug] "My::App" defined "!default" as "CODE(0x83fd570)" + [...] [catalyst] [debug] Debug messages enabled + [...] [catalyst] [debug] Loaded engine "Catalyst::Engine::CGI" + [...] [catalyst] [debug] Initialized components "" + [...] [catalyst] [info] My::App powered by Catalyst 4.26 + [...] [catalyst] [debug] "My::App" defined "!default" as "CODE(0x83fd570)" You can connect to your server at http://localhost:3000 +(Note that each line logged by Catalyst includes a timestamp, which has been +replaced here with "C<...>" so that the text fits onto the lines.) + The server is now waiting for you to make requests of it. Try using telnet to manually make a simple GET request of the server (when telnet responds with "Escape character is '^]'.", type "GET / HTTP/1.0" and hit return twice): @@ -96,13 +98,13 @@ manually make a simple GET request of the server (when telnet responds with More trace messages will appear in the original terminal window: - [Sun Mar 20 12:31:55 2005] [catalyst] [debug] ******************************** - [Sun Mar 20 12:31:55 2005] [catalyst] [debug] * Request 1 (0.027/s) [9818] - [Sun Mar 20 12:31:55 2005] [catalyst] [debug] ******************************** - [Sun Mar 20 12:31:55 2005] [catalyst] [debug] "GET" request for "" - [Sun Mar 20 12:31:55 2005] [catalyst] [debug] Using default action - [Sun Mar 20 12:31:55 2005] [catalyst] [info] Processing "!default" took 0.000033s - [Sun Mar 20 12:31:55 2005] [catalyst] [info] Request took 0.051399s (19.456/s) + [...] [catalyst] [debug] ******************************** + [...] [catalyst] [debug] * Request 1 (0.027/s) [9818] + [...] [catalyst] [debug] ******************************** + [...] [catalyst] [debug] "GET" request for "" + [...] [catalyst] [debug] Using default action + [...] [catalyst] [info] Processing "!default" took 0.000033s + [...] [catalyst] [info] Request took 0.051399s (19.456/s) The server will continue running until you interrupt it. @@ -112,18 +114,18 @@ helper script, C