作者:Jonathan Rockway
出版日期:December 11, 2007
出版社:其它
页数:200
ISBN:978-1847190956
文件格式:PDF
Accelerating Perl Web Application Development
Understand the Catalyst Framework and MVC architectureBuild and test a site with CatalystDetailed walkthroughs to create sample applicationsExtend Catalyst through plug-insIn Detail
Many web applications are implemented in a way that makes developingthem painful and repetitive. Catalyst is an open-source Perl-basedModel-View-Controller framework that aims to solve this problem byreorganizing your web application to design and implement it in anatural, maintainable, and testable manner, making web development fun,fast, and rewarding.
Everything that your web application needs to do is only writtenonce; you connect to the database in one place, have configuration inone place, etc. Then, you just write actions for each URL that yourapplication needs, without worrying about the database connections orHTML to produce. Catalyst will handle the details so you can worryabout writing your application.
Catalyst is designed to be reliable. There are hundreds ofproduction applications and thousands of users. The code iswell-tested, and new releases almost always maintain compatibility withapplications written for older versions. You don’t have to worry aboutCatalyst breaking your application and slowing down your development.It just works.
Most importantly, Catalyst has a thriving community. You can ask aquestion on the IRC channel and get a response at almost any time ofthe day.
This book embodies Catalyst’s philosophies of Do It Yourself and Don’t Repeat Yourself.
What you will learn from this book?
Installing and setting up CatalystHow MVC works in Catalyst, explained with a simple exampleUsing the Template toolkit to generate HTML outputDesigning a database schema and accessing a SQLite databaseCreating a CRUD interface to a databaseUsing FormBuilder to define auto-generating and self-validating formsCreating easy-to-maintain configuration filesImporting CVS files into a databasePaginating search resultsUsing the session plug-in to add sessions to an applicationAuthentication and authorization, explored by implementing page-level and record-level controlBuilding an editable web interfaceFeatures of DBIC for easy handling of dataInterfacing to your data:Mixing a procedural interface with a relational DBIx::Class interfaceWriting a database interface without DBIx::ClassBuilding a custom Model without using any databaseAdding a REST API to allow other applications to access your applicationAdding AJAX interactivity to your applicationIncorporating RSS feeds in your applicationAutomated testing and the “Test-Driven Development” methodology, discussed in depthTechniques to test your Catalyst application easilyWriting tests for applications developed in this book with Mechanize and SeleniumPackaging your application:Manage dependencies and create packages easily using Makefile.PLCreate a unique configuration for each environmentHow to set up for a variety of web serversHow to make your application a self-contained file (PAR)Approach
This book will guide you through the features of Catalyst using real-world examples and systematic code snippets.
Who this book is written for?
This book is for web developers with basic Perl skills who are newto Catalyst. If you are excited by Ruby on Rails but would like thefeatures of Rails with the familiarity of Perl, pick this book and getstarted.