# cmsc128-irregit/cistrs architecture

> Architecture diagram of the GitHub repository cmsc128-irregit/cistrs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cmsc128-irregit/cistrs
- Repository: https://github.com/cmsc128-irregit/cistrs

## Overview

CISTRS is a small frontend/backend scaffold: the React entry point mounts a placeholder screen, while an Express server exposes a health endpoint. The sampled source shows no frontend-to-backend calls or persistence behavior; although a Prisma schema exists, its runtime use is not established here.

Main entry points: [`frontend/src/main.tsx`](https://github.com/cmsc128-irregit/cistrs/blob/main/frontend/src/main.tsx) (React entry), [`frontend/src/App.tsx`](https://github.com/cmsc128-irregit/cistrs/blob/main/frontend/src/App.tsx) (CISTRS screen), [`backend/src/server.ts`](https://github.com/cmsc128-irregit/cistrs/blob/main/backend/src/server.ts) (Health endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_frontend_entry["React entry<br/>[main.tsx]"]
  node_app_screen["CISTRS screen<br/>[App.tsx]"]
end

subgraph group_backend["Backend"]
  node_health_api["Health endpoint<br/>[server.ts]"]
end

node_browser(("Browser user"))
node_http_client(("HTTP client"))

node_frontend_entry -->|"renders"| node_app_screen
node_browser -.->|"opens app"| node_frontend_entry
node_http_client -.->|"requests health"| node_health_api

click node_frontend_entry "https://github.com/cmsc128-irregit/cistrs/blob/main/frontend/src/main.tsx"
click node_app_screen "https://github.com/cmsc128-irregit/cistrs/blob/main/frontend/src/App.tsx"
click node_health_api "https://github.com/cmsc128-irregit/cistrs/blob/main/backend/src/server.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_frontend_entry,node_app_screen,node_browser,node_http_client toneBlue
class node_health_api toneAmber
```

## Components

### Frontend

- [React entry](https://github.com/cmsc128-irregit/cistrs/blob/main/frontend/src/main.tsx): `frontend/src/main.tsx`
- [CISTRS screen](https://github.com/cmsc128-irregit/cistrs/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`

### Backend

- [Health endpoint](https://github.com/cmsc128-irregit/cistrs/blob/main/backend/src/server.ts): `backend/src/server.ts`

### Other components

- **Browser user**
- **HTTP client**

## Connections

- React entry → CISTRS screen: renders (evidence: `frontend/src/main.tsx`)
- Browser user → React entry: opens app
- HTTP client → Health endpoint: requests health
