Output is built on the server side by the following modules (corresponding to subdirectories of server/):
bootis the entry point, which loads the Express middleware and configures some basic settings. It then invokespages, which uses Express to- set up even more configuration, depending the type of the environment (
development,staging,production, etc.), settings from/config, etc. - define the basic routing, depending on whether the user is logged in or not
- compute necessary variables, wraps them in a
contextobject - render content by passing that to
404.jade,500.jade, orindex.jadeJade template files, respectively.
- set up even more configuration, depending the type of the environment (
index.jade- builds an HTML skeleton, including
<script>tags to load relevant JavaScript files (minified unless in debug mode or in thedevelopmentenvironment) that contain client-side (React) rendering code - lastly, it runs
window.AppBoot(), which is defined inclient/boot.
- builds an HTML skeleton, including