# team-zero-dsm/greener architecture

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

- Interactive diagram: https://gitdiagram.com/team-zero-dsm/greener
- Repository: https://github.com/team-zero-dsm/greener

## Overview

GreenER is currently a development scaffold rather than a documented domain product: its frontend renders a placeholder screen, and its backend exposes a health endpoint. The graph shows those runtime paths only. The README and sampled source do not establish a connection between frontend and backend or describe the database’s role, so neither is inferred.

Main entry points: [`frontend/src/main.tsx`](https://github.com/team-zero-dsm/greener/blob/main/frontend/src/main.tsx) (React Mount), [`frontend/src/App.tsx`](https://github.com/team-zero-dsm/greener/blob/main/frontend/src/App.tsx) (Placeholder Screen), [`backend/src/app.ts`](https://github.com/team-zero-dsm/greener/blob/main/backend/src/app.ts) (Health API), [`backend/src/server.ts`](https://github.com/team-zero-dsm/greener/blob/main/backend/src/server.ts) (HTTP Server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_frontend_mount["React Mount<br/>[main.tsx]"]
  node_app_screen["Placeholder Screen<br/>[App.tsx]"]
  node_card_ui["Card Components<br/>[card.tsx]"]
end

subgraph group_backend["Backend"]
  node_backend_server["HTTP Server<br/>[server.ts]"]
  node_backend_app["Health API<br/>[app.ts]"]
end

node_visitor(("Visitor"))
node_browser(("Browser"))
node_health_client(("Health Checker"))

node_visitor -->|"uses"| node_browser
node_browser -.->|"loads"| node_frontend_mount
node_frontend_mount -->|"renders"| node_app_screen
node_app_screen -->|"renders"| node_card_ui
node_backend_server -->|"serves"| node_backend_app
node_health_client -->|"requests health"| node_backend_app

click node_frontend_mount "https://github.com/team-zero-dsm/greener/blob/main/frontend/src/main.tsx"
click node_app_screen "https://github.com/team-zero-dsm/greener/blob/main/frontend/src/App.tsx"
click node_card_ui "https://github.com/team-zero-dsm/greener/blob/main/frontend/src/components/ui/card.tsx"
click node_backend_server "https://github.com/team-zero-dsm/greener/blob/main/backend/src/server.ts"
click node_backend_app "https://github.com/team-zero-dsm/greener/blob/main/backend/src/app.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_mount,node_app_screen,node_card_ui,node_browser toneBlue
class node_backend_server,node_backend_app toneAmber
class node_visitor,node_health_client toneIndigo
```

## Components

### Frontend

- [React Mount](https://github.com/team-zero-dsm/greener/blob/main/frontend/src/main.tsx): `frontend/src/main.tsx`
- [Placeholder Screen](https://github.com/team-zero-dsm/greener/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Card Components](https://github.com/team-zero-dsm/greener/blob/main/frontend/src/components/ui/card.tsx): `frontend/src/components/ui/card.tsx`

### Backend

- [HTTP Server](https://github.com/team-zero-dsm/greener/blob/main/backend/src/server.ts): `backend/src/server.ts`
- [Health API](https://github.com/team-zero-dsm/greener/blob/main/backend/src/app.ts): `backend/src/app.ts`

### Other components

- **Visitor**
- **Browser**
- **Health Checker**

## Connections

- Visitor → Browser: uses
- Browser → React Mount: loads
- React Mount → Placeholder Screen: renders (evidence: `frontend/src/main.tsx`)
- Placeholder Screen → Card Components: renders (evidence: `frontend/src/App.tsx`)
- HTTP Server → Health API: serves (evidence: `backend/src/server.ts`)
- Health Checker → Health API: requests health (evidence: `backend/src/app.ts`)
