# mishumang/bank architecture

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

- Interactive diagram: https://gitdiagram.com/mishumang/bank
- Repository: https://github.com/mishumang/bank

## Overview

1. This repository is split into two top-level application surfaces: a Vite-based React frontend in the root, and a separate `backend/` Node package. The provided tree does not expose backend source files, so the frontend is the only fully visible runtime path.

2. The frontend is a classic single-page application (SPA). `index.html` is the Vite entry HTML, and `src/main.jsx` is the JavaScript bootstrap that mounts the React app into the DOM.

3. `src/App.jsx` is the main application component, with `src/App.css` and `src/index.css` providing component-level and global styling. `src/assets/` holds static frontend assets referenced by the React app.

4. Vite is the build/dev subsystem. `vite.config.js` defines the frontend bundling and development server behavior, and `package.json` in the repository root defines the frontend dependency graph and scripts.

5. Styling is handled with Tailwind CSS tooling in the root: `tailwind.config.js` and `postcss.config.js` indicate Tailwind is part of the CSS pipeline, alongside the app CSS files. This means the UI layer is likely a mix of utility classes and custom styles.

6. The linting/tooling boundary is explicit: `eslint.config.js` governs code quality for the frontend source tree. This is part of the developer workflow rather than runtime architecture, but it affects how the UI code is structured and maintained.

7. The `public/` directory is the static-asset boundary for files served directly by Vite without bundling. Anything placed there is available as-is to the browser at runtime.

8. The `backend/` directory is a separate package with its own `package.json`, `package-lock.json`, and `.env`. That strongly suggests an independent server or API process, but because no backend source tree is visible here, its actual framework, routes, and data stores cannot be confirmed from the provided files.

9. The only clearly visible data flow is browser-centric: Vite serves the SPA, the browser loads `index.html`, React boots from `src/main.jsx`, and the UI composition lives in `src/App.jsx` plus assets/styles. Any frontend-to-backend communication would be external to the visible files and should be treated as an unverified integration point.

10. For an architecture diagram, the safest representation is: browser client → Vite-served React SPA → optional separate backend service in `backend/` if present at runtime. The frontend and backend are physically separated in the repo, which usually implies independent build/run lifecycles.

11. Infrastructure-wise, this is a lightweight JavaScript/Node stack with no visible database, queue, auth provider, or cloud service wiring in the supplied tree. Any such dependencies are not exposed here and should not be assumed.

Main entry points: [`package.json`](https://github.com/mishumang/bank/blob/main/package.json) (Frontend Package), [`src/App.jsx`](https://github.com/mishumang/bank/blob/main/src/App.jsx) (App Shell), [`index.html`](https://github.com/mishumang/bank/blob/main/index.html) (Index HTML), [`tailwind.config.js`](https://github.com/mishumang/bank/blob/main/tailwind.config.js) (Tailwind Config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Frontend SPA"]
  node_browser(("Browser<br/>runtime"))
  node_html["Index HTML<br/>vite entry<br/>[index.html]"]
  node_main["App Bootstrap<br/>react entry<br/>[main.jsx]"]
  node_app["App Shell<br/>react component<br/>[App.jsx]"]
  node_appcss["App Styles<br/>component css<br/>[App.css]"]
  node_globalcss["Global Styles<br/>global css<br/>[index.css]"]
  node_assets[("Static Assets<br/>frontend assets")]
  node_public[("Public Files<br/>static public")]
end

subgraph group_tooling["Build Tooling"]
  node_pkg["Frontend Package<br/>npm package<br/>[package.json]"]
  node_vite["Vite Config<br/>build config<br/>[vite.config.js]"]
  node_tailwind["Tailwind Config<br/>css config<br/>[tailwind.config.js]"]
  node_postcss["PostCSS Config<br/>css pipeline<br/>[postcss.config.js]"]
  node_eslint["Lint Config<br/>code quality<br/>[eslint.config.js]"]
end

subgraph group_server["Backend Package"]
  node_backendpkg["Backend Package<br/>node package"]
  node_backendjson["Backend Package JSON<br/>npm manifest<br/>[package.json]"]
  node_backendenv["Backend Env<br/>runtime config<br/>[.env]"]
end

node_browser -->|"loads"| node_html
node_html -->|"boots"| node_main
node_main -->|"mounts"| node_app
node_app -->|"styles"| node_appcss
node_app -->|"inherits"| node_globalcss
node_app -->|"uses"| node_assets
node_html -->|"serves"| node_public
node_pkg -->|"scripts"| node_vite
node_pkg -->|"includes"| node_tailwind
node_pkg -->|"pipes"| node_postcss
node_pkg -->|"lints"| node_eslint
node_tailwind -.->|"supports"| node_appcss
node_tailwind -.->|"supports"| node_globalcss
node_backendpkg -->|"defines"| node_backendjson
node_backendpkg -->|"configures"| node_backendenv
node_pkg -.->|"separate package"| node_backendpkg

click node_html "https://github.com/mishumang/bank/blob/main/index.html"
click node_main "https://github.com/mishumang/bank/blob/main/src/main.jsx"
click node_app "https://github.com/mishumang/bank/blob/main/src/App.jsx"
click node_appcss "https://github.com/mishumang/bank/blob/main/src/App.css"
click node_globalcss "https://github.com/mishumang/bank/blob/main/src/index.css"
click node_assets "https://github.com/mishumang/bank/tree/main/src/assets"
click node_public "https://github.com/mishumang/bank/tree/main/public"
click node_pkg "https://github.com/mishumang/bank/blob/main/package.json"
click node_vite "https://github.com/mishumang/bank/blob/main/vite.config.js"
click node_tailwind "https://github.com/mishumang/bank/blob/main/tailwind.config.js"
click node_postcss "https://github.com/mishumang/bank/blob/main/postcss.config.js"
click node_eslint "https://github.com/mishumang/bank/blob/main/eslint.config.js"
click node_backendpkg "https://github.com/mishumang/bank/tree/main/backend"
click node_backendjson "https://github.com/mishumang/bank/blob/main/backend/package.json"
click node_backendenv "https://github.com/mishumang/bank/blob/main/backend/.env"

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_browser,node_html,node_main,node_app,node_appcss,node_globalcss,node_assets,node_public toneBlue
class node_pkg,node_vite,node_tailwind,node_postcss,node_eslint toneAmber
class node_backendpkg,node_backendjson,node_backendenv toneMint
```

## Components

### Frontend SPA

Vite + React browser application in the repository root.

- **Browser**: runtime · End-user runtime that loads the SPA.
- [Index HTML](https://github.com/mishumang/bank/blob/main/index.html): vite entry · Vite entry document for the frontend app. · `index.html`
- [App Bootstrap](https://github.com/mishumang/bank/blob/main/src/main.jsx): react entry · Mounts the React application into the DOM. · `src/main.jsx`
- [App Shell](https://github.com/mishumang/bank/blob/main/src/App.jsx): react component · Main application component and UI composition root. · `src/App.jsx`
- [App Styles](https://github.com/mishumang/bank/blob/main/src/App.css): component css · Component-scoped stylesheet for the app shell. · `src/App.css`
- [Global Styles](https://github.com/mishumang/bank/blob/main/src/index.css): global css · Application-wide stylesheet loaded by the frontend. · `src/index.css`
- [Static Assets](https://github.com/mishumang/bank/tree/main/src/assets): frontend assets · Imported static assets used by the React UI. · `src/assets`
- [Public Files](https://github.com/mishumang/bank/tree/main/public): static public · Files served directly by Vite without bundling. · `public`

### Build Tooling

Frontend build, CSS, and linting configuration.

- [Frontend Package](https://github.com/mishumang/bank/blob/main/package.json): npm package · Root dependency graph and scripts for the frontend. · `package.json`
- [Vite Config](https://github.com/mishumang/bank/blob/main/vite.config.js): build config · Frontend bundler and dev-server configuration. · `vite.config.js`
- [Tailwind Config](https://github.com/mishumang/bank/blob/main/tailwind.config.js): css config · Tailwind CSS pipeline configuration. · `tailwind.config.js`
- [PostCSS Config](https://github.com/mishumang/bank/blob/main/postcss.config.js): css pipeline · PostCSS processing for the styling toolchain. · `postcss.config.js`
- [Lint Config](https://github.com/mishumang/bank/blob/main/eslint.config.js): code quality · ESLint rules for the frontend source tree. · `eslint.config.js`

### Backend Package

Separate Node package under backend/; source is not visible in the provided tree.

- [Backend Package](https://github.com/mishumang/bank/tree/main/backend): node package · Separate backend package boundary; implementation files are not visible here. · `backend`
- [Backend Package JSON](https://github.com/mishumang/bank/blob/main/backend/package.json): npm manifest · Backend package metadata and scripts. · `backend/package.json`
- [Backend Env](https://github.com/mishumang/bank/blob/main/backend/.env): runtime config · Backend environment configuration. · `backend/.env`

## Connections

- Browser → Index HTML: loads · The browser requests the Vite entry document.
- Index HTML → App Bootstrap: boots · The HTML entry loads the React bootstrap module.
- App Bootstrap → App Shell: mounts · Bootstrap code renders the main app component.
- App Shell → App Styles: styles · App shell styling is applied through the component stylesheet.
- App Shell → Global Styles: inherits · The UI also depends on global application styles.
- App Shell → Static Assets: uses · The app composes imported frontend assets.
- Index HTML → Public Files: serves · Static files in public/ are exposed directly at runtime.
- Frontend Package → Vite Config: scripts · Root package scripts drive Vite build and dev behavior.
- Frontend Package → Tailwind Config: includes · Tailwind is part of the frontend styling toolchain.
- Frontend Package → PostCSS Config: pipes · PostCSS participates in CSS processing.
- Frontend Package → Lint Config: lints · ESLint governs frontend code quality.
- Tailwind Config → App Styles: supports · Tailwind utilities complement the app styles.
- Tailwind Config → Global Styles: supports · Tailwind utilities complement the global styles.
- Backend Package → Backend Package JSON: defines · Backend package metadata and scripts are defined here.
- Backend Package → Backend Env: configures · Backend runtime settings are supplied via environment variables.
- Frontend Package → Backend Package: separate package · The backend is an independently managed Node package.
