# sudharsanthiruvenkadam/fit-buddy architecture

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

- Interactive diagram: https://gitdiagram.com/sudharsanthiruvenkadam/fit-buddy
- Repository: https://github.com/sudharsanthiruvenkadam/fit-buddy

## Overview

Fit Buddy is a fitness web app whose main workflow is using the React client to access an Express API, with MongoDB persistence. Documented capabilities include accounts, workouts, plans, goals, activity logging, progress, and contact messages. The available tree contains only README.md and no source excerpts, so feature nodes have null paths and internal call relationships are omitted; edges shown are limited to relationships the README documents.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_web["React app"]
end

subgraph group_api["Fitness API"]
  node_api_entry["REST API"]
  node_accounts["Accounts"]
  node_workouts["Workouts"]
  node_plans["Plans"]
  node_goals["Goals"]
  node_activity["Activity tracker"]
  node_progress["Progress"]
  node_contact["Contact"]
end

subgraph group_data["Persistence"]
  node_mongo[("MongoDB")]
end

node_user(("User"))

node_user -->|"uses"| node_web
node_web -->|"calls REST API"| node_api_entry
node_api_entry -->|"persists data"| node_mongo
node_contact -->|"saves messages"| node_mongo

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_web,node_user toneBlue
class node_api_entry,node_accounts,node_workouts,node_plans,node_goals,node_activity,node_progress,node_contact toneAmber
class node_mongo toneMint
```

## Components

### Web client

- **React app**

### Fitness API

- **REST API**
- **Accounts**
- **Workouts**
- **Plans**
- **Goals**
- **Activity tracker**
- **Progress**
- **Contact**

### Persistence

- **MongoDB**

### Other components

- **User**

## Connections

- User → React app: uses (evidence: `README.md`)
- React app → REST API: calls REST API (evidence: `README.md`)
- REST API → MongoDB: persists data (evidence: `README.md`)
- Contact → MongoDB: saves messages (evidence: `README.md`)
