# westnesss/calculator_and_sum_two_nums architecture

> Architecture diagram of the GitHub repository westnesss/calculator_and_sum_two_nums, 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/westnesss/calculator_and_sum_two_nums
- Repository: https://github.com/westnesss/calculator_and_sum_two_nums

## Overview

This is a small React web app organized around a temporary login-to-dashboard flow. The dashboard selects among four exercise modules—sum, calculator, API search, and form—and each can return to the menu. The login and feature screens are explicitly marked as under construction, so the graph reflects navigation rather than completed domain behavior. Source excerpts show the app’s component wiring, but no API calls, persistence, or authentication service.

Main entry points: [`apps/web/src/App.jsx`](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/App.jsx) (View controller), [`apps/web/src/pages/LoginPage.jsx`](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/pages/LoginPage.jsx) (Login screen), [`apps/web/src/pages/DashboardPage.jsx`](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/pages/DashboardPage.jsx) (Dashboard), [`apps/web/src/modules/suma/Suma.jsx`](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/modules/suma/Suma.jsx) (Sum module)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_mount["React entry<br/>[main.jsx]"]
  node_app["View controller<br/>[App.jsx]"]
end

subgraph group_screens["Pages"]
  node_login["Login screen<br/>[LoginPage.jsx]"]
  node_dashboard["Dashboard<br/>[DashboardPage.jsx]"]
end

subgraph group_modules["Exercise modules"]
  node_sum["Sum module<br/>[Suma.jsx]"]
  node_calculator["Calculator<br/>[Calculadora.jsx]"]
  node_api["API search<br/>[ApiSearch.jsx]"]
  node_form["Form module<br/>[Formulario.jsx]"]
end

node_user(("User"))

node_mount -->|"renders"| node_app
node_app -->|"renders"| node_login
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_sum
node_app -->|"renders"| node_calculator
node_app -->|"renders"| node_api
node_app -->|"renders"| node_form
node_user -.->|"uses"| node_app
node_login -->|"signals login"| node_app
node_dashboard -->|"signals navigation"| node_app
node_sum -->|"signals back"| node_app
node_calculator -->|"signals back"| node_app
node_api -->|"signals back"| node_app
node_form -->|"signals back"| node_app

click node_mount "https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/main.jsx"
click node_app "https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/App.jsx"
click node_login "https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/pages/LoginPage.jsx"
click node_dashboard "https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/pages/DashboardPage.jsx"
click node_sum "https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/modules/suma/Suma.jsx"
click node_calculator "https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/modules/calculadora/Calculadora.jsx"
click node_api "https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/modules/api-search/ApiSearch.jsx"
click node_form "https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/modules/formulario/Formulario.jsx"

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_mount,node_app,node_user toneBlue
class node_login,node_dashboard toneAmber
class node_sum,node_calculator,node_api,node_form toneMint
```

## Components

### App navigation

- [React entry](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/main.jsx): `apps/web/src/main.jsx`
- [View controller](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/App.jsx): `apps/web/src/App.jsx`

### Pages

- [Login screen](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/pages/LoginPage.jsx): `apps/web/src/pages/LoginPage.jsx`
- [Dashboard](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/pages/DashboardPage.jsx): `apps/web/src/pages/DashboardPage.jsx`

### Exercise modules

- [Sum module](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/modules/suma/Suma.jsx): `apps/web/src/modules/suma/Suma.jsx`
- [Calculator](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/modules/calculadora/Calculadora.jsx): `apps/web/src/modules/calculadora/Calculadora.jsx`
- [API search](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/modules/api-search/ApiSearch.jsx): `apps/web/src/modules/api-search/ApiSearch.jsx`
- [Form module](https://github.com/westnesss/calculator_and_sum_two_nums/blob/main/apps/web/src/modules/formulario/Formulario.jsx): `apps/web/src/modules/formulario/Formulario.jsx`

### Other components

- **User**

## Connections

- React entry → View controller: renders (evidence: `apps/web/src/main.jsx`)
- View controller → Login screen: renders (evidence: `apps/web/src/App.jsx`)
- View controller → Dashboard: renders (evidence: `apps/web/src/App.jsx`)
- View controller → Sum module: renders (evidence: `apps/web/src/App.jsx`)
- View controller → Calculator: renders (evidence: `apps/web/src/App.jsx`)
- View controller → API search: renders (evidence: `apps/web/src/App.jsx`)
- View controller → Form module: renders (evidence: `apps/web/src/App.jsx`)
- User → View controller: uses
- Login screen → View controller: signals login (evidence: `apps/web/src/App.jsx`)
- Dashboard → View controller: signals navigation (evidence: `apps/web/src/App.jsx`)
- Sum module → View controller: signals back (evidence: `apps/web/src/App.jsx`)
- Calculator → View controller: signals back (evidence: `apps/web/src/App.jsx`)
- API search → View controller: signals back (evidence: `apps/web/src/App.jsx`)
- Form module → View controller: signals back (evidence: `apps/web/src/App.jsx`)
