blib/lib/MKDoc/Core/Article/Overview.pm untested

filter: Statementstmt n/a Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a SCAR -
1 =head1 NAME
2  
3 MKDoc::Core::Article::Overview - Overview of MKDoc::Core
4  
5  
6  
7 =head1 SUMMARY
8  
9 This is an article, not a module.
10  
11  
12  
13 =head1 HISTORY
14  
15 MKDoc is a mature, feature-rich web content management system which promotes
16 standards compliance, accessibility, usability and information architecture.
17  
18 However, MKDoc code lives in one big CVS repository. Each time a feature is
19 added, the codebase increases a bit more.
20  
21 Separation between various system components is sometimes a bit blurry.
22  
23 Although MKDoc is not at the stage of "unworkable spaghetti code which needs to
24 be thrown away", there is quite a fair bit of cleanup / refactoring to be done.
25  
26 The two main goals of L<MKDoc::Core> are to:
27  
28 =over
29  
30 =item Cleanup / Refactor MKDoc
31  
32 =item Open-source MKDoc
33  
34 =back
35  
36  
37  
38 =head1 OVERVIEW
39  
40 L<MKDoc::Core> is a mod_perl friendly application framework in which web applications
41 can be written.
42  
43 Rather than writing L<MKDoc::Core> from scratch, the following has been done:
44  
45 =over
46  
47 =item Take the existing MKDoc code
48  
49 =item Remove all user functionality
50  
51 =item See what is remaining
52  
53 =item Refactor & make minor improvements
54  
55 =item Document thoroughly
56  
57 =back
58  
59  
60 What Remains? You might ask. Well, let's see...
61  
62  
63 =head2 Install scripts
64  
65 L<MKDoc::Core> comes with L<MKDoc::Core::Setup>, an easily subclassable module
66 which provides a standard installation procedure for MKDoc software packages.
67  
68 L<MKDoc::Core> aims at providing an easy installation procedure - or at least
69 easier than other server-side OSS packages such as RT, Slash or Bugzilla. Well.
70 Maybe :)
71  
72  
73 =head2 A pluggable chain of responsiblity.
74  
75 L<MKDoc::Core> offers a 'chain of responsibility' design pattern to handle
76 incoming HTTP requests. There is a predefined list of handlers which are called
77 plugins in MKDoc jargon. Each plugin can choose to process the request or not.
78  
79 At the end of the plugin chain, there is always the L<MKDoc::Core::Not_Found>
80 plugin which always processes the request when everything else has failed. It
81 displays a '404 Not Found' page.
82  
83  
84 =head2 A multi website system
85  
86 MKDoc has been designed to run multiple sites - and L<MKDoc::Core> reflects
87 that.
88  
89 When you install L<MKDoc::Core>, you create a master repository which contains
90 an empty httpd.conf file. You just need to include this file in your apache
91 config. Unless you have specific requirements, you should not have to fiddle
92 around too much with Apache config files.
93  
94 The way it works is that whenever you install a new site, it creates httpd.conf
95 files in the site directory which are included the the master directory's
96 httpd.conf file. All you need do once you have installed a new site is restart
97 apache.
98  
99  
100 =head2 A customization system
101  
102 By default plugin use L<Petal> templates which are stored along with the code
103 somewhere in @INC/MKDoc/templates.
104  
105 When you install L<MKDoc::Core>, you have to create a master directory in which
106 you can define server-wide defaults for all your L<MKDoc::Core> sites. For
107 example you can redefine a template in the L<MKDoc::Core> master directory and
108 all your L<MKDoc::Core> sites will use this default.
109  
110 When you install an L<MKDoc::Core> site, you can customize further at the site
111 level (as opposed to server-wide level). This means that MKDoc::Core products
112 offer three degrees of customization:
113  
114 =over
115  
116 =item "Factory defaults"
117  
118 =item Server wide
119  
120 =item Site wide
121  
122 =back
123  
124  
125 =head2 Multi-lingual support (optional)
126  
127 By default L<MKDoc::Core::Plugin> class coupled with L<MKDoc::Core::Language>
128 will choose the appropriate template based on content negotiation. Other mechanisms
129 than content negotiation can be used through subclassing.
130  
131  
132 =head2 Some optional libraries
133  
134 =over
135  
136 =item L<MKDoc::Core::Plugin>
137  
138 By default L<MKDoc::Core::Plugin> uses L<MKDoc::Core::Error> for easy error reporting -
139 which is especially useful with forms / user input validation.
140  
141 It is also coupled with L<MKDoc::Core::Language> to provide your web application with
142 multi-lingual capabilities.
143  
144  
145 =item L<MKDoc::Core::Request>
146  
147 A subclass of CGI.pm coupled with a per-request singleton design pattern.
148 Features minor bugfixes and extra methods over CGI.pm.
149  
150  
151 =item L<MKDoc::Core::Response>
152  
153 Counterpart of L<MKDoc::Core::Request>, you can use L<MKDoc::Core::Response> to
154 easily and correctly format your HTTP responses.
155  
156 =back
157  
158  
159  
160 =head1 CAVEAT
161  
162 L<MKDoc::Core> on its own does I<nuthin'>
163  
164 The following products have been written completed:
165  
166  
167 =head2 L<MKDoc::Auth>
168  
169 This MKDoc product provides:
170  
171 =over
172  
173 =item User signup / signout with customizable email confirmation
174  
175 =item Apache authentication handlers
176  
177 =item Login / Logout / Log as somebody else
178  
179 =back
180  
181  
182 =head2 L<MKDoc::Forum>
183  
184 This MKDoc product provides IMAP based, threaded discussion forums. It can be
185 used with any authentication mechanisms and works "out of the box" with
186 L<MKDoc::Auth>.
187  
188  
189 The following products need doing:
190  
191  
192 =head2 L<MKDoc::Authz>
193  
194 This MKDoc product will provide:
195  
196 =over
197  
198 =item ACL based authorization facilities
199  
200 =item Apache authentication handlers
201  
202 =item Some kind of web interface for administration
203  
204 =back
205  
206  
207 =head2 L<MKDoc::CMS>
208  
209 This MKDoc product will provide the functionality presently offered by MKDoc
210 1.6, our proprietary content management system - Minus MKDoc::Forum which is
211 now a separate product.
212  
213 See http://mkdoc.com/ for details.
214  
215  
216 =cut