Book Image

Catalyst 5.8: the Perl MVC Framework

By : Antano Solar John
Book Image

Catalyst 5.8: the Perl MVC Framework

By: Antano Solar John

Overview of this book

<p>Many web applications are implemented in a way that makes developing them difficult and repetitive. Catalyst is an open source Perl-based Model-View-Controller framework that aims to solve this problem by reorganizing your web application to design and implement it in a natural, maintainable, and testable manner, making web development fun, fast, and rewarding.<br /><br />This book teaches you how to use Catalyst to weave the various components involved in a web application, using methods and tools you personally prefer along with recommendations and details on the most popularly used objects like the DBIX ORM, TT2 Template, and Moose.<br /><br />This book will take you from how the MVC pattern simplifies creating quality applications to how Catalyst allows you to tap this power instantly. It explains advanced design patterns and concludes with the improvements that Moose brings to all this. It also incorporates valuable suggestions and feedback received from the community members and our customers. By the end of the book, you will be able to build clean, scalable, and extendable web applications. This book embodies Catalyst's philosophies of Do It Yourself and Don't Repeat Yourself.</p>
Table of Contents (16 chapters)
Catalyst 5.8
Credits
About the Author
About the Reviewer
Preface
7
Hot Web Topics
Index

Files in the script directory


Finally, there is the script directory that contains the scripts needed to run, test, and modify your application.

myapp_server.pl is the development server; a self-contained HTTP server that you can use to run your application while you're developing it.

myapp_cgi.pl is a CGI script for deploying your application with a web server that cannot use mod_perl or FastCGI. It's very slow, so use it only as a last resort.

The last server is called myapp_fastcgi.pl, which allows you to run your application as a FastCGI server. In Chapter 9, we'll see how to use these scripts to run our application in a production environment.

There are also two utility scripts in this directory. You can use the myapp_test.pl script to test an action, without opening a web browser. For example, you can print the source of the welcome page by running the following command line:

$ perl script/myapp_test.pl /

The last script is myapp_create.pl, which is a version of catalyst.pl that's customized...