From: Jesse Sheidlower Date: Tue, 27 Jun 2006 17:41:56 +0000 (+0000) Subject: nuked old Tutorial X-Git-Tag: 5.7099_04~457 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=769c3b8f01ef3a794bbc6928be9da49b99417dca;hp=a74c2d1a1e12c43e5dbb4caef23f7cc25e57bd1f;p=catagits%2FCatalyst-Runtime.git nuked old Tutorial --- diff --git a/lib/Catalyst/Manual/Tutorial-orig.pod b/lib/Catalyst/Manual/Tutorial-orig.pod deleted file mode 100644 index 9df4d8a..0000000 --- a/lib/Catalyst/Manual/Tutorial-orig.pod +++ /dev/null @@ -1,854 +0,0 @@ -=head1 NAME - -Catalyst::Manual::Tutorial - Getting started with Catalyst - -=head1 DESCRIPTION - -THIS IS THE PREVIOUS VERSION OF THE TUTORIAL, NOW SUPPLANTED -BY A MULTI-PART ONE FROM HKCLARK. I'M KEEPING IT HERE UNDER -THIS NAME SO WE CAN MOVE RELEVANT PARTS OF IT INTO OTHER -C::M::MANUAL SUBSECTIONS, AND THEN DELETE IT. - -This document aims to get you up and running with Catalyst. - -=head2 Installation - -The first step is to install Catalyst, and the simplest way to do this -is to install the Catalyst bundle from CPAN: - - $ perl -MCPAN -e 'install Task::Catalyst' - -This will retrieve Catalyst and a number of useful extensions and -install them for you. This process might not be totally painless -though, and you might want to look at CatInABox at -L, especially if you are -on a system that lacks a compiler. - - -=head2 The very basics - Setting up the skeleton application. - -Catalyst includes a helper script, C, that will set up a -skeleton application for you: - - $ catalyst.pl tutorial - - created "tutorial" - created "tutorial/script" - ... output snipped - created "tutorial/script/tutorial_create.pl" - -This creates the directory structure, populated with skeleton -files. - -=head2 Testing out the skeleton application - -You can test out your new application by running the server script that -Catalyst provides: - - $ cd tutorial - $ script/tutorial_server.pl - - [...] [catalyst] [debug] Debug messages enabled - [...] [catalyst] [debug] Loaded plugins: - .------------------------------------------------------------------------------. - | Catalyst::Plugin::Static::Simple | - '------------------------------------------------------------------------------' - [...] [catalyst] [debug] Loaded dispatcher "Catalyst::Dispatcher" - [...] [catalyst] [debug] Loaded engine "Catalyst::Engine::HTTP" - [...] [catalyst] [debug] Found home "/home/users/me/tutorial" - [...] [catalyst] [debug] Loaded Private actions: - .--------------------------------------+---------------------------------------. - | Private | Class | - +--------------------------------------+---------------------------------------+ - | /default | tutorial | - '--------------------------------------+---------------------------------------' - - [...] [catalyst] [info] tutorial powered by Catalyst 5.67 - You can connect to your server at http://localhost:3000 - -(Note that each line logged by Catalyst begins with 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): - - $ telnet localhost 3000 - Trying 127.0.0.1... - Connected to localhost. - Escape character is '^]'. - GET / HTTP/1.0 - - HTTP/1.0 200 OK - Date: Mon, 07 Nov 2005 14:57:39 GMT - Content-Length: 5525 - Content-Type: text/html; charset=utf-8 - Status: 200 - X-Catalyst: 5.67 - - [...] - Connection closed by foreign host. - $ - -You can see the full welcome message by visiting -http://localhost:3000/ with your browser. - -More trace messages will appear in the original terminal window: - - [...] [catalyst] [debug] ********************************** - [...] [catalyst] [debug] * Request 1 (0.063/s) [2148] - [...] [catalyst] [debug] ********************************** - [...] [catalyst] [debug] Arguments are "" - [...] [catalyst] [debug] "GET" request for "" from localhost - [...] [catalyst] [info] Request took 0.046883s (21.330/s) - .------------------------------------------------------------------+-----------. - | Action | Time | - +------------------------------------------------------------------+-----------+ - | /default | 0.000000s | - '------------------------------------------------------------------+-----------' - -The server will continue running until you interrupt it. - -The application can also be tested from the command line using the generated -helper script, C