Skip to content

zForDevelopers – Onboarding

Evan Moscoso edited this page Jun 6, 2025 · 3 revisions

MicrobeTrace

MicrobeTrace Onboarding

Set up your system

MicrobeTrace is built with Angular and Node.js. Before you begin, install the following tools:

Optional but helpful tools:

Get MicrobeTrace

Clone the repository and install dependencies:

git clone https://github.com/cdcgov/MicrobeTrace.git
cd MicrobeTrace
npm install

After installation you can start the development server with:

npm start

This runs ng serve under the hood and launches the app at http://localhost:4200/. The server reloads automatically when you change source files.

Building

To create a production build:

npm run build

The compiled files are written to the dist/ directory. You can deploy these static files with any web server or host them using services like GitHub Pages.

Development Tips

  • Use the Angular CLI to generate new components and services.
  • Most of the application's logic lives inside src/.
  • Data remains client-side; no server is required beyond serving the static assets.

How we git

The angularUpdate branch reflects what is deployed in production.

Useful Documentation

Descendant Projects

MicrobeTrace depends on several companion libraries:

  • TidyTree – D3-based phylogenetic tree rendering.
  • Patristic – object model for phylogenetic branches.
  • Physics Tree – experimental force‑directed tree layout.
  • TN93.js – distance calculation algorithm.
  • bioseq.js – sequence alignment utilities.
  • AlignmentViewer – visualizes sequence alignments.
  • Fileto – keeps file handles accessible after uploads.

Only TidyTree is user-facing; others support internal functionality.

Clone this wiki locally