# jordansanchezvelarde/student-hub architecture

> Architecture diagram of the GitHub repository jordansanchezvelarde/student-hub, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jordansanchezvelarde/student-hub
- Repository: https://github.com/jordansanchezvelarde/student-hub

## Overview

This React app presents a DevHub dashboard for choosing small student/developer tools. The workflow starts at the browser entry point, renders the routed dashboard, and opens a selected module; implemented modules include a stateful calculator and a registration form validated against a Zod schema. The sum and API routes are present but currently render empty shells. Relationships are based on the supplied excerpts; no external API or persistent storage behavior is evidenced.

Main entry points: [`src/App.jsx`](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/App.jsx) (Routes and navigation), [`src/pages/Home.jsx`](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/pages/Home.jsx) (Module dashboard), [`src/components/RegisterForm.jsx`](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/components/RegisterForm.jsx) (Registration form), [`src/main.jsx`](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app_shell["App shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_router["Routes and navigation<br/>[App.jsx]"]
  node_dashboard["Module dashboard<br/>[Home.jsx]"]
end

subgraph group_tool_pages["Tool pages"]
  node_calculator["Calculator<br/>[Calculator.jsx]"]
  node_sum["Sum page<br/>[Sum.jsx]"]
  node_api["API page<br/>[Api.jsx]"]
end

subgraph group_registration["Registration"]
  node_register_form["Registration form<br/>[RegisterForm.jsx]"]
  node_register_schema["Form validation schema<br/>[registerSchema.js]"]
end

node_browser_user(("Browser user"))

node_browser_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"routes to"| node_dashboard
node_router -->|"routes to"| node_calculator
node_router -->|"routes to"| node_sum
node_router -->|"routes to"| node_api
node_router -->|"routes to"| node_register_form
node_dashboard -->|"links to"| node_sum
node_dashboard -->|"links to"| node_calculator
node_dashboard -->|"links to"| node_api
node_dashboard -->|"links to"| node_register_form
node_register_form -->|"validates with"| node_register_schema

click node_entry "https://github.com/jordansanchezvelarde/student-hub/blob/main/src/main.jsx"
click node_router "https://github.com/jordansanchezvelarde/student-hub/blob/main/src/App.jsx"
click node_dashboard "https://github.com/jordansanchezvelarde/student-hub/blob/main/src/pages/Home.jsx"
click node_calculator "https://github.com/jordansanchezvelarde/student-hub/blob/main/src/pages/Calculator.jsx"
click node_sum "https://github.com/jordansanchezvelarde/student-hub/blob/main/src/pages/Sum.jsx"
click node_api "https://github.com/jordansanchezvelarde/student-hub/blob/main/src/pages/Api.jsx"
click node_register_form "https://github.com/jordansanchezvelarde/student-hub/blob/main/src/components/RegisterForm.jsx"
click node_register_schema "https://github.com/jordansanchezvelarde/student-hub/blob/main/src/schemas/registerSchema.js"

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_entry,node_router,node_dashboard,node_browser_user toneBlue
class node_calculator,node_sum,node_api toneAmber
class node_register_form,node_register_schema toneMint
```

## Components

### App shell

- [React entry](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/main.jsx): `src/main.jsx`
- [Routes and navigation](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/App.jsx): `src/App.jsx`
- [Module dashboard](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`

### Tool pages

- [Calculator](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/pages/Calculator.jsx): `src/pages/Calculator.jsx`
- [Sum page](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/pages/Sum.jsx): `src/pages/Sum.jsx`
- [API page](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/pages/Api.jsx): `src/pages/Api.jsx`

### Registration

- [Registration form](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/components/RegisterForm.jsx): `src/components/RegisterForm.jsx`
- [Form validation schema](https://github.com/jordansanchezvelarde/student-hub/blob/main/src/schemas/registerSchema.js): `src/schemas/registerSchema.js`

### Other components

- **Browser user**

## Connections

- Browser user → React entry: opens app
- React entry → Routes and navigation: renders (evidence: `src/main.jsx`)
- Routes and navigation → Module dashboard: routes to (evidence: `src/App.jsx`)
- Routes and navigation → Calculator: routes to (evidence: `src/App.jsx`)
- Routes and navigation → Sum page: routes to (evidence: `src/App.jsx`)
- Routes and navigation → API page: routes to (evidence: `src/App.jsx`)
- Routes and navigation → Registration form: routes to (evidence: `src/App.jsx`)
- Module dashboard → Sum page: links to (evidence: `src/pages/Home.jsx`)
- Module dashboard → Calculator: links to (evidence: `src/pages/Home.jsx`)
- Module dashboard → API page: links to (evidence: `src/pages/Home.jsx`)
- Module dashboard → Registration form: links to (evidence: `src/pages/Home.jsx`)
- Registration form → Form validation schema: validates with (evidence: `src/components/RegisterForm.jsx`)
