1 <?xml version="1.0" encoding="iso-8859-1"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml"><head> 4 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /> 5 <title>Anatomy of a WebStack Application</title> 6 <link href="styles.css" rel="stylesheet" type="text/css" /></head> 7 8 <body> 9 <h1>Anatomy 10 of a WebStack 11 Application</h1> 12 <p>The simplest way to think of a 13 Web application is as just some code which 14 sits on a server and is sent messages - specifically HTTP requests - to 15 which it must respond by writing out messages to send back - 16 specifically HTTP responses. When using WebStack, we think of the 17 situation in terms of the following components:</p> 18 <table style="text-align: left; margin-left: auto; margin-right: auto; width: 80%;" class="layers" border="0" cellpadding="5" cellspacing="0"> 19 <tbody> 20 <tr> 21 <td width="40%"></td> 22 <th style="text-align: center;">What 23 it does</th> 24 <th style="text-align: center;">How much work</th> 25 <th style="text-align: center;">Where 26 to look</th> 27 </tr> 28 <tr> 29 <th style="text-align: center; vertical-align: middle; background-color: rgb(193, 255, 102); border-top-style: solid; border-left-style: solid; border-right-style: solid; border-top-width: 1px; border-left-width: 1px; border-right-width: 1px;">Application 30 </th> 31 <td style="text-align: center;"><span class="explanation">This 32 defines what the user sees. </span></td> 33 <td align="center" valign="undefined">Most new code will be 34 written in the application.</td> 35 <td align="center" valign="undefined">Applications are 36 described in <a href="developing.html">"Developing a WebStack Application"</a>.</td> 37 </tr> 38 <tr> 39 <th style="border-width: 1px; text-align: center; vertical-align: middle; background-color: rgb(102, 203, 255); border-left-style: solid; border-right-style: solid; border-top-style: solid;">Adapter 40 </th> 41 <td style="text-align: center;"><span class="explanation">This 42 "glues" the application to the environment.</span></td> 43 <td align="center" valign="undefined">Mostly copying an existing 44 adapter or writing a short module.</td> 45 <td align="center" valign="undefined">Adapters are explained in <a href="deploying.html">"Deploying a WebStack Application"</a>. </td> 46 </tr> 47 <tr> 48 <th style="border-style: solid; border-width: 1px; text-align: center; vertical-align: middle; background-color: rgb(192, 192, 192);">Server 49 environment </th> 50 <td align="center" valign="undefined"><span class="explanation">This 51 is where the application runs.</span></td> 52 <td align="center" valign="undefined">Some configuration needed, 53 if any at all.</td> 54 <td align="center" valign="undefined">Server environments are 55 covered 56 in <a href="deploying.html">"Deploying a WebStack Application"</a>. 57 </td> 58 </tr> 59 </tbody> 60 </table> 61 </body></html>