As mentioned in Chapter 1, Building a Single-Page Site Using Backbone, Syapse (http://www.syapse.com) is a Backbone-powered web application for requesting and providing precision medicine results. Syapse's customers are laboratories and hospitals that use genetic sequencing to profile patients with serious diseases like cancer. Once sequenced, these genetic profiles can be combined with large bodies of research to determine the best treatments and dosages for a given patient based on the patient's own DNA.
Let's take a look at how Syapse was put together.
Syapse's client-side code is organized using Require.js (see Dependency management with RequireJS in Chapter 11, (Not) Re-Inventing the Wheel: Utilizing Third-Party Libraries). Every module is either a class, a singleton instance (for utility libraries), or a function (for routes). Syapse has two different sites, one for laboratories and the other for clinics, so we use RequireJS to compile separate JavaScript...