WebStack

Annotated docs/anatomy.html

354:32f41c83f4ac
2005-04-25 paulb [project @ 2005-04-25 22:04:02 by paulb] Changed the labels in the components table. Improved the design considerations document. Added an integration document. Added a note about templating systems in the responses document.
paulb@347 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
paulb@327 2
<html xmlns="http://www.w3.org/1999/xhtml">
paulb@327 3
<head>
paulb@348 4
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" />
paulb@327 5
  <title>Anatomy of a WebStack Application</title>
paulb@347 6
  <meta name="generator"
paulb@347 7
 content="amaya 8.1a, see http://www.w3.org/Amaya/" />
paulb@328 8
  <link href="styles.css" rel="stylesheet" type="text/css" />
paulb@327 9
</head>
paulb@327 10
<body>
paulb@347 11
<h1>Anatomy
paulb@347 12
of a WebStack
paulb@347 13
Application</h1>
paulb@347 14
<p>The simplest way to think of a
paulb@347 15
Web application is as just some code which
paulb@347 16
sits on a server and is sent messages - specifically HTTP requests - to
paulb@347 17
which it must respond by writing out messages to send back -
paulb@347 18
specifically HTTP responses. When using WebStack, we think of the
paulb@347 19
situation in terms of&nbsp;the following components:</p>
paulb@348 20
<table
paulb@348 21
 style="text-align: left; margin-left: auto; margin-right: auto; width: 80%;"
paulb@348 22
 class="layers" border="0" cellpadding="5" cellspacing="0">
paulb@347 23
  <tbody>
paulb@347 24
    <tr>
paulb@348 25
      <td width="40%"></td>
paulb@348 26
      <th style="text-align: center;">What
paulb@348 27
it does</th>
paulb@348 28
      <th style="text-align: center;">How much work</th>
paulb@348 29
      <th style="text-align: center;">Where
paulb@348 30
to look</th>
paulb@347 31
    </tr>
paulb@347 32
    <tr>
paulb@347 33
      <th
paulb@348 34
 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
paulb@348 35
      </th>
paulb@348 36
      <td style="text-align: center;"><span class="explanation">This
paulb@349 37
defines what the user sees. </span></td>
paulb@348 38
      <td align="center" valign="undefined">Most new code will be
paulb@348 39
written in the application.</td>
paulb@349 40
      <td align="center" valign="undefined">Applications are
paulb@354 41
described in <a href="resources.html">"Applications and Resources"</a>.</td>
paulb@347 42
    </tr>
paulb@347 43
    <tr>
paulb@347 44
      <th
paulb@348 45
 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
paulb@348 46
      </th>
paulb@348 47
      <td style="text-align: center;"><span class="explanation">This
paulb@348 48
"glues" the application to the environment.</span></td>
paulb@348 49
      <td align="center" valign="undefined">Mostly copying an existing
paulb@348 50
adapter or writing a short module.</td>
paulb@354 51
      <td align="center" valign="undefined">Adapters are explained in <a
paulb@354 52
 href="deploying.html">"Deploying a WebStack Application"</a>. </td>
paulb@348 53
    </tr>
paulb@348 54
    <tr>
paulb@348 55
      <th
paulb@348 56
 style="border-style: solid; border-width: 1px; text-align: center; vertical-align: middle; background-color: rgb(192, 192, 192);">Server
paulb@348 57
environment </th>
paulb@348 58
      <td align="center" valign="undefined"><span class="explanation">This
paulb@348 59
is where the application runs.</span></td>
paulb@348 60
      <td align="center" valign="undefined">Some configuration needed,
paulb@348 61
if any at all.</td>
paulb@348 62
      <td align="center" valign="undefined">Server environments are
paulb@348 63
covered
paulb@354 64
in&nbsp;<a href="deploying.html">"Deploying a WebStack Application"</a>.
paulb@354 65
      </td>
paulb@347 66
    </tr>
paulb@347 67
  </tbody>
paulb@347 68
</table>
paulb@327 69
</body>
paulb@327 70
</html>