# jashwanthakulamtsl/bmi-calculator architecture

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

- Interactive diagram: https://gitdiagram.com/jashwanthakulamtsl/bmi-calculator
- Repository: https://github.com/jashwanthakulamtsl/bmi-calculator

## Overview

This is a small Angular BMI calculator. Its principal workflow is entering height and weight, calculating BMI, and assigning an underweight, normal-weight, overweight, or obese category; the calculator component contains that logic. The Angular entry point bootstraps the app module, which bootstraps the shell and declares the calculator. The templates were not sampled, so the user-interaction wiring is not shown. The environment flag is read at startup to enable production mode when applicable.

Main entry points: [`src/app/app.module.ts`](https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/app/app.module.ts) (App module), [`src/main.ts`](https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/main.ts) (Application startup), [`src/app/bmi-calculator/bmi-calculator.component.ts`](https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/app/bmi-calculator/bmi-calculator.component.ts) (BMI calculator), [`src/environments/environment.ts`](https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/environments/environment.ts) (Environment settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_main["Application startup<br/>[main.ts]"]
node_environment["Environment settings<br/>[environment.ts]"]
node_module["App module<br/>[app.module.ts]"]
node_shell["App shell<br/>[app.component.ts]"]
node_calculator["BMI calculator"]

node_main -->|"reads settings"| node_environment
node_main -->|"bootstraps"| node_module
node_module -->|"bootstraps"| node_shell
node_module -->|"declares"| node_calculator
node_user -.->|"provides inputs"| node_calculator

click node_main "https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/main.ts"
click node_environment "https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/environments/environment.ts"
click node_module "https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/app/app.module.ts"
click node_shell "https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/app/app.component.ts"
click node_calculator "https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/app/bmi-calculator/bmi-calculator.component.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_user toneBlue
class node_main,node_environment,node_module,node_shell,node_calculator toneTeal
```

## Components

### Other components

- **User**
- [Application startup](https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/main.ts): `src/main.ts`
- [Environment settings](https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/environments/environment.ts): `src/environments/environment.ts`
- [App module](https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/app/app.module.ts): `src/app/app.module.ts`
- [App shell](https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/app/app.component.ts): `src/app/app.component.ts`
- [BMI calculator](https://github.com/jashwanthakulamtsl/bmi-calculator/blob/main/src/app/bmi-calculator/bmi-calculator.component.ts): `src/app/bmi-calculator/bmi-calculator.component.ts`

## Connections

- Application startup → Environment settings: reads settings (evidence: `src/main.ts`)
- Application startup → App module: bootstraps (evidence: `src/main.ts`)
- App module → App shell: bootstraps (evidence: `src/app/app.module.ts`)
- App module → BMI calculator: declares (evidence: `src/app/app.module.ts`)
- User → BMI calculator: provides inputs
