# arnesh03/bankie-webapp architecture

> Architecture diagram of the GitHub repository arnesh03/bankie-webapp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/arnesh03/bankie-webapp
- Repository: https://github.com/arnesh03/bankie-webapp

## Overview

##### Project type and purpose
- From the file tree (.prettierrc, index.html, script.js, style.css) and README we see this is a pure front-end single-page demo web application (“Bankie-WebAPP”) with no separate backend or database. It runs entirely in the browser and is hosted as static assets (for example on Netlify). Its purpose is to demonstrate net-banking features (login, logout, loan, transfer, delete account, sorting, date display) using four hard-coded demo accounts.

##### File structure
- index.html: the HTML entry point and UI skeleton
- style.css: presentation layer, styles for buttons, forms, transaction history
- script.js: all business logic and data model (the demo accounts array, login/logout timer, transfer/loan/delete/sort functions, DOM updates)
- .prettierrc and README.md: tooling config and documentation

There are no “backend” or “database” directories or files—logic and “data” live in script.js and in browser memory.

##### README for additional insights
- It defines the user flows and features (login, logout timer, loan limit, transfer, delete, sorting, day display).
- No mention of external APIs or services.
- Hosting is via Netlify (static site).

##### Elements
- Clear labels: “Browser”, “index.html (UI)”, “style.css (Styling)”, “script.js (Logic & Data)”, “Netlify (Static Host)”
– From Netlify → Browser (HTTP GET of index.html, CSS, JS)
– From Browser UI → script.js (event handlers)
– From script.js → DOM (updates UI)
– From Browser → User (UI rendered)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Hosting Service
    Netlify("Netlify<br/>(Static Host)"):::host

    %% Browser Runtime
    Browser("Web Browser"):::browser
    DOM("DOM<br/>(Rendered UI)"):::browser
    User("End User"):::external

    subgraph "Front-End Layers"
        Index["index.html<br/>(UI Structure)"]:::presentation
        Style["style.css<br/>(Styling)"]:::presentation
        Script["script.js<br/>(Logic & Data)"]:::logic
    end

    subgraph "Documentation & Config"
        README["README.md<br/>(Documentation)"]:::doc
        Prettier[".prettierrc<br/>(Config)"]:::doc
    end

    %% Connections
    Netlify -->|"Serves static files"| Browser
    Browser -->|"Loads index.html"| Index
    Index -->|"References"| Style
    Index -->|"References"| Script
    Browser -->|"Renders UI via DOM"| DOM
    User -->|"Interacts with UI"| Browser
    Script -->|"Reads inputs & updates"| DOM

    %% Click Events
    click Index "https://github.com/arnesh03/bankie-webapp/blob/main/index.html"
    click Style "https://github.com/arnesh03/bankie-webapp/blob/main/style.css"
    click Script "https://github.com/arnesh03/bankie-webapp/blob/main/script.js"
    click README "https://github.com/arnesh03/bankie-webapp/blob/main/README.md"
    click Prettier "https://github.com/arnesh03/bankie-webapp/blob/main/.prettierrc"

    %% Styles
    classDef host fill:#ffe4b2,stroke:#cc8400,stroke-width:1px;
    classDef browser fill:#e0f7fa,stroke:#007c91,stroke-width:1px;
    classDef presentation fill:#e8f5e9,stroke:#2e7d32,stroke-width:1px;
    classDef logic fill:#ffebee,stroke:#c62828,stroke-width:1px;
    classDef doc fill:#f3e5f5,stroke:#6a1b9a,stroke-width:1px;
    classDef external fill:#ffffff,stroke:#000000,stroke-width:1px,stroke-dasharray: 2 2;
```
