Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.62 KB

development.md

File metadata and controls

38 lines (28 loc) · 1.62 KB

Development

Dependencies

Install these dependencies according to their own instructions:

Developing

TODO: Docker compose setup

Architecture

This is a standard Express backend + React frontend application. Frontend files live in ./client, and backend files live at the root of the project.

The API routes are set up in app.mjs, and are listed in routes/; the frontend groups all API communication functions in ./client/src/api.js. The models/ folder contains the functions to retrieve the actual data, depending on where it is. Some of it is in Postgres databases (genes, peaks, sessions); the tracks come from the tracks / mergedTracks folders configured previously, the variants (aka samples) data comes from a VCF, and the UCSC track hubs are generated on the fly.

Note that all code should be written with the assumption that multiple processes can run at a time. Thus, Redis/Postgres should generally be used for any cached/persistent data.