Catalyst

Jonathan Rockway

eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$14.39 save 40%!
Print book: $39.99
$35.99 save 10%!
Print + eBook bundle: $63.98
Includes free access to the book on PacktLib
$39.59 save 38%!
Free Shipping! UK, US, Europe and selected countries in Asia.
This book can also be purchased from:
Overview
Table of Contents
The Author
Reviews
Downloads

 

  • Understand the Catalyst Framework and MVC architecture
  • Build and test a site with Catalyst
  • Detailed walkthroughs to create sample applications
  • Extend Catalyst through plug-ins

Book Details

Language : English
Paperback : 200 pages [ 235mm x 191mm ]
Release Date : December 2007
ISBN : 1847190952
ISBN 13 : 978-1-847190-95-6
Author(s) : Jonathan Rockway
Topics and Technologies : All Books, Architecture & Analysis, Open Source

Back to BOOK PAGE

Table of Contents

Preface
Chapter 1: Introduction to Catalyst
Chapter 2: Creating a Catalyst Application
Chapter 3: Building a Real Application
Chapter 4: Expanding the Application
Chapter 5: Building a More Advanced Application
Chapter 6: Building Your Own Model
Chapter 7: Hot Web Topics
Chapter 8: Testing
Chapter 9: Deployment
Index
  • Chapter 1: Introduction to Catalyst
    • Catalyst Application Architecture
      • Extensibility
      • Reusability
      • Flexibility
      • Reliability
    • Installing Catalyst
      • CPAN
    • Where to go for Help?
    • Summary
  • Chapter 2: Creating a Catalyst Application
    • Creating the Application Skeleton
    • MyApp Directory Structure
      • Files in the MyApp Directory
      • Files in the lib Directory
      • Files in the root Directory
      • Files in the script Directory
      • Files in the t Directory
    • Adding a View
      • Using a Template To Render the Page
      • Some Technical Details
    • Adding a Database
      • Installing SQLite
      • Creating a Database Schema
      • Creating a Database Model for Catalyst
      • Using the Model
    • Summary
  • Chapter 3: Building a Real Application
    • Environment Setup
    • Database Design
    • Understanding the Interface to the Database
    • TTSite
      • Creating the Index Page
      • Creating a "Not Found" Page
    • Viewing People
    • Basic CRUD
    • Forms
    • Finishing Up
    • Summary
  • Using Components from Outside Catalyst
  • Searching and Paging
  • Authentication and Authorization
    • Authentication
    • Authorization
    • Adding Authentication and Authorization to the Address Book
  • Summary
  • Chapter 6: Building Your Own Model
    • Extending a DBIx::Class Model
      • Custom Methods Without Raw SQL
      • Calling Database Functions
    • Creating a Database Model from Scratch
    • Implementing a Filesystem Model
      • Tweaking the Model
      • Request Context Inside the Model
      • Maintainable Models
      • Other Components
    • Summary
  • Chapter 7: Hot Web Topics
    • REST
      • Getting some REST
        • REST Controller
        • REST Authentication
        • Adding an Entity
        • REST Easy
    • AJAX
      • Getting Started
        • Jemplate
      • Implementing AJAX
    • RSS
    • Summary
  • Chapter 8: Testing
    • Mechanics
    • Testing ChatStat
      • Testing a Database
      • Testing the Web Interface
    • Testing the Address Book
      • Logging In
      • Testing Forms
      • Testing JavaScript
    • Summary
  • Chapter 9: Deployment
    • Basics
      • PAR Deployment
      • Configuration Management
    • Configuring a Web Server
      • Apache
        • FastCGI
        • Static Content
        • mod_perl
        • Performance Considerations
      • Development Server and perlbal
    • Summary
Back to BOOK PAGE

Jonathan Rockway

Jonathan Rockway, a member of the Catalyst Core Team, has been programming Perl since his middle-school years. He became professionally involved with Perl when he was a desktop support minion at the University of Chicago and inherited a mod_perl application. He now works as a software developer at Infinity Interactive. In his spare time, he maintains a collection of modules on the CPAN and tries to speak at as many Perl conferences as possible.

Sorry, we don't have any reviews for this title yet.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Find your book in our support section to find errata and to download code samples.

What you will learn from this book

  • Installing and setting up Catalyst
  • How MVC works in Catalyst, explained with a simple example
  • Using the Template toolkit to generate HTML output
  • Designing a database schema and accessing a SQLite database
  • Creating a CRUD interface to a database
  • Using FormBuilder to define auto-generating and self-validating forms
  • Creating easy-to-maintain configuration files
  • Importing CVS files into a database
  • Paginating search results
  • Using the session plug-in to add sessions to an application
  • Authentication and authorization, explored by implementing page-level and record-level control
  • Building an editable web interface
  • Features of DBIC for easy handling of data
  • Interfacing to your data:
  • Mixing a procedural interface with a relational DBIx::Class interface
  • Writing a database interface without DBIx::Class
  • Building a custom Model without using any database
  • Adding a REST API to allow other applications to access your application
  • Adding AJAX interactivity to your application
  • Incorporating RSS feeds in your application
  • Automated testing and the "Test-Driven Development" methodology, discussed in depth
  • Techniques to test your Catalyst application easily
  • Writing tests for applications developed in this book with Mechanize and Selenium
  • Packaging your application:
  • Manage dependencies and create packages easily using Makefile.PL
  • Create a unique configuration for each environment
  • How to set up for a variety of web servers
  • How to make your application a self-contained file (PAR)

Special Offers

PacktLib gives you access to this and 600+ other titles with an annual or monthly subscription.

Annual subscription:

$220.00 per annum

Monthly subscription:

$21.99 per month

Buy 2 eBooks
and Get 50% Off
+
Buy Catalyst with Catalyst 5.8: the Perl MVC Framework and get 50% off both the eBooks.
Just add both the eBooks to your shopping cart and enter cat5eb in the 'Enter Promotion Code' field. Click 'Add Promotion Code' and the discount will be applied.
View Best Selling eBook offers

In Detail

Many web applications are implemented in a way that makes developing them painful 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.

Everything that your web application needs to do is only written once; you connect to the database in one place, have configuration in one place, etc. Then, you just write actions for each URL that your application needs, without worrying about the database connections or HTML to produce. Catalyst will handle the details so you can worry about writing your application.

Catalyst is designed to be reliable. There are hundreds of production applications and thousands of users. The code is well-tested, and new releases almost always maintain compatibility with applications written for older versions. You don't have to worry about Catalyst breaking your application and slowing down your development. It just works.

Most importantly, Catalyst has a thriving community. You can ask a question on the IRC channel and get a response at almost any time of the day.
 
This book embodies Catalyst's philosophies of Do It Yourself and Don't Repeat Yourself.

Design, develop, test, and deploy applications with the open-source MVC Catalyst framework

Approach

This book will guide you through the features of Catalyst using real-world examples and systematic code snippets.

 

Who this book is for

This book is for web developers with basic Perl skills who are new to Catalyst. If you are excited by Ruby on Rails but would like the features of Rails with the familiarity of Perl, pick this book and get started.

Are there no books available that are right for you at the moment? How about signing up to our newsletter to keep up to date?
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Sort A-Z