# arunkumar8688/banking_system_project architecture

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

- Interactive diagram: https://gitdiagram.com/arunkumar8688/banking_system_project
- Repository: https://github.com/arunkumar8688/banking_system_project

## Overview

This is a small interactive bank-account application. The main workflow offers registration or login; successful registration proceeds to login, and successful login opens a dashboard for balance checks, deposits, withdrawals, or logout. Database access is provided by a shared MySQL connection and cursor. The excerpts show these core paths; no README or other product capabilities are available.

Main entry points: [`dbconnection.py`](https://github.com/arunkumar8688/banking_system_project/blob/main/dbconnection.py) (Shared connection and cursor), [`register.py`](https://github.com/arunkumar8688/banking_system_project/blob/main/register.py) (Registration), [`login.py`](https://github.com/arunkumar8688/banking_system_project/blob/main/login.py) (Login), [`main.py`](https://github.com/arunkumar8688/banking_system_project/blob/main/main.py) (Register or login menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User Entry"]
  node_menu["Register or login menu<br/>[main.py]"]
end

subgraph group_accounts["Account Access"]
  node_registration["Registration<br/>[register.py]"]
  node_authentication["Login<br/>[login.py]"]
end

subgraph group_banking["Banking Actions"]
  node_dashboard["Dashboard<br/>[dashboard.py]"]
  node_account_actions["Withdraw, deposit, balance<br/>[dashboard.py]"]
end

subgraph group_storage["Persistence"]
  node_mysql[("MySQL database")]
  node_db_connection["Shared connection and cursor<br/>[dbconnection.py]"]
end

node_customer(("Bank customer"))

node_customer -->|"chooses option"| node_menu
node_menu -->|"dispatches registration"| node_registration
node_menu -->|"dispatches login"| node_authentication
node_registration -->|"creates user table"| node_db_connection
node_registration -->|"inserts account"| node_db_connection
node_registration -->|"starts login"| node_authentication
node_authentication -->|"fetches users"| node_db_connection
node_authentication -->|"opens on success"| node_dashboard
node_dashboard -->|"offers actions"| node_account_actions
node_account_actions -->|"updates balance"| node_db_connection
node_db_connection -->|"connects"| node_mysql

click node_menu "https://github.com/arunkumar8688/banking_system_project/blob/main/main.py"
click node_registration "https://github.com/arunkumar8688/banking_system_project/blob/main/register.py"
click node_authentication "https://github.com/arunkumar8688/banking_system_project/blob/main/login.py"
click node_dashboard "https://github.com/arunkumar8688/banking_system_project/blob/main/dashboard.py"
click node_account_actions "https://github.com/arunkumar8688/banking_system_project/blob/main/dashboard.py"
click node_db_connection "https://github.com/arunkumar8688/banking_system_project/blob/main/dbconnection.py"

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_menu toneBlue
class node_registration,node_authentication toneAmber
class node_dashboard,node_account_actions toneMint
class node_mysql,node_db_connection toneRose
class node_customer toneIndigo
```

## Components

### User Entry

- [Register or login menu](https://github.com/arunkumar8688/banking_system_project/blob/main/main.py): `main.py`

### Account Access

- [Registration](https://github.com/arunkumar8688/banking_system_project/blob/main/register.py): `register.py`
- [Login](https://github.com/arunkumar8688/banking_system_project/blob/main/login.py): `login.py`

### Banking Actions

- [Dashboard](https://github.com/arunkumar8688/banking_system_project/blob/main/dashboard.py): `dashboard.py`
- [Withdraw, deposit, balance](https://github.com/arunkumar8688/banking_system_project/blob/main/dashboard.py): `dashboard.py`

### Persistence

- **MySQL database**
- [Shared connection and cursor](https://github.com/arunkumar8688/banking_system_project/blob/main/dbconnection.py): `dbconnection.py`

### Other components

- **Bank customer**

## Connections

- Bank customer → Register or login menu: chooses option (evidence: `main.py`)
- Register or login menu → Registration: dispatches registration (evidence: `main.py`)
- Register or login menu → Login: dispatches login (evidence: `main.py`)
- Registration → Shared connection and cursor: creates user table (evidence: `register.py`)
- Registration → Shared connection and cursor: inserts account (evidence: `register.py`)
- Registration → Login: starts login (evidence: `register.py`)
- Login → Shared connection and cursor: fetches users (evidence: `login.py`)
- Login → Dashboard: opens on success (evidence: `login.py`)
- Dashboard → Withdraw, deposit, balance: offers actions (evidence: `dashboard.py`)
- Withdraw, deposit, balance → Shared connection and cursor: updates balance (evidence: `dashboard.py`)
- Shared connection and cursor → MySQL database: connects (evidence: `dbconnection.py`)
