=encoding utf8 =head1 NAME Mojolicious::Guides - The Mojolicious Guide to the Galaxy =head1 DON'T PANIC! The L documentation is structured into three parts. The L everyone starts with, the L that explain all major features in detail, and the L reference listing all available classes. Some parts of the documentation only use the L micro web framework for examples, but that's merely a convenience for the reader. Almost all features are exactly the same for full L applications. =head1 BASICS =head2 Learning Perl If you are new to Perl, we recommend L for a quick introduction, or the L, freely available in many formats. Both are excellent introductions to the language. For more books and documentation, check out L. =head2 Learning Web Technologies All web development starts with HTML, CSS and JavaScript, to learn the basics we recommend the L. And if you want to know more about how browsers and web servers actually communicate, there's also a very nice introduction to L. =head1 CONVENTIONS =head2 Modern Perl L uses a modern subset of Perl exclusively, and therefore all documentation assumes that L, L, L and Perl 5.16 L are enabled, even if examples don't specifically mention it. use strict; use warnings; use utf8; use feature ':5.16'; Some modules, like L and L, will enable them for you automatically, whenever they are used. =head2 Signatures On Perl 5.20+ you can also use the C<-signatures> flag with L to enable support for L. Signatures are used in all examples for clarity, even when C<-signatures> is omitted for brevity. =head2 Variable names For brevity and clarity, example variables will reflect the type of data the API uses. For instance, C<$bytes> or C<$chars> to distinguish whether it is encoded bytes or decoded characters in a Perl L, C<$bool> if the value just indicates true or false, C<$c> to denote a L object, or C<$app> to denote the L object. =head1 TUTORIAL =over 2 =item L A fast and fun way to get started developing web applications with L. The tutorial introduces the L micro web framework, which is only a thin wrapper around the full web framework. The simplified notation introduced in the tutorial is commonly used throughout the guides and is therefore considered a prerequisite, you should definitely take a look! =back =head1 GUIDES =over 2 =item L Starting a L prototype from scratch and growing it into a well-structured L application. =item L Simple and fun introduction to the L router. =item L Generating content with the L renderer. =item L Powerful yet elegant testing techniques and tools for L and other web applications. =item L Cooking with L, recipes for every taste. =item L Become a part of the ongoing L development. =item L Answers to the most frequently asked questions. =back =head1 HIGHLIGHTS L and L are the sum of many parts, built on top of the L web development toolkit. Small building blocks that can be used independently for all kinds of applications, these are the most prominent ones. =over 2 =item L Full featured non-blocking I/O HTTP and WebSocket user agent. =item L Very fun and minimalistic HTML/XML DOM parser with CSS selector support. =item L Minimalistic JSON implementation that just works. =item L Full featured, highly portable non-blocking I/O HTTP and WebSocket server, with self-restart support through L, perfect for development and testing. =item L Full featured, UNIX optimized, preforking non-blocking I/O HTTP and WebSocket server with support for zero downtime software upgrades (hot deployment) through L. =item L, L Transparent CGI and L support out of the box. =item L A minimalistic event loop with support for multiple reactor backends. =item L Very Perl-ish and minimalistic template system. =item L Testing toolkit for web applications. =item L Fun one-liners using everything above. =back =head1 FULL-STACK These modules are not part of the L distribution, but have been designed to be used with it and are being developed under the same umbrella. =over 2 =item L A tiny wrapper around L that makes L a lot of fun to use with L. Perform queries blocking and non-blocking, use all L PostgreSQL has to offer, generate CRUD queries from data structures, manage your database schema with migrations and build scalable real-time web applications with the publish/subscribe pattern. B The minimal L application will show you how to scale WebSockets to multiple servers, and the well-structured L application how to apply the MVC design pattern in practice. =item L A full featured job queue for L with support for multiple backends (such as L). Job queues allow you to process time and/or computationally intensive tasks in background processes, outside of the request/response lifecycle. Among those tasks you'll commonly find image resizing, spam filtering, HTTP downloads, building tarballs, warming caches and basically everything else you can imagine that's not super fast. B The L will show you how to integrate background jobs into well-structured L applications. =back =head1 API This is the class hierarchy of the L distribution. =over 2 =item * L =item * L =over 2 =item * L =over 2 =item * L =item * L =back =item * L =item * L =over 2 =item * L =item * L =back =item * L =item * L =item * L =item * L =over 2 =item * L =over 2 =item * L =item * L =back =item * L =over 2 =item * L =item * L =back =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =over 2 =item * L =item * L =back =item * L =over 2 =item * L =over 2 =item * L =back =back =item * L =over 2 =item * L =item * L =over 2 =item * L =back =item * L =back =item * L =over 2 =item * L =item * L =back =item * L =item * L =back =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =over 2 =item * L =back =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =over 2 =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =item * L =over 2 =item * L =back =back =item * L =item * L =over 2 =item * L =over 2 =item * L =over 2 =item * L =back =back =item * L =item * L =over 2 =item * L =back =item * L =item * L =item * L =back =item * L =item * L =item * L =item * L =over 2 =item * L =back =item * L =item * L =item * L =item * L =item * L =item * L =back =item * L =item * L =item * L =item * L =item * L =over 2 =item * L =back =item * L =item * L =item * L =item * L =item * L =back =head1 MORE A lot more documentation and examples by many different authors can be found in the L. =head1 SUPPORT If you have any questions the documentation might not yet answer, don't hesitate to ask in the L, on L, or L. =cut