# onesahdevsinh/bank-management-app-dotnet-cli architecture

> Architecture diagram of the GitHub repository onesahdevsinh/bank-management-app-dotnet-cli, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/onesahdevsinh/bank-management-app-dotnet-cli
- Repository: https://github.com/onesahdevsinh/bank-management-app-dotnet-cli

## Overview

##### Project type and purpose
- This is a .NET CLI-based, single-solution (“BankApp.sln”) banking management application written in C#.
- Purpose: provide a text-based interface for bank staff to manage accounts, customers, and transactions via commands.

##### File structure
- Top level:
- BankApp.sln – Visual Studio solution
- BankApp/ (C# project folder)
- README.md, .gitignore, .gitattributes
- Under BankApp/:
- Program.cs – CLI entry point
- BankAccount.cs – domain entity
- App.config – runtime settings
- info.txt – likely a simple data store or seed file
- Properties/AssemblyInfo.cs – metadata
- No separate “DataAccess” or “Services” folders, so domain logic, CLI, and any persistence code all live in one assembly.

##### README for additional insights
- Modular architecture claim, but in practice all modules are in one project.
- Uses .NET CLI, C# 6.0+, no external database—data likely stored in plain files or in-memory.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Solution and Project
    SOL["BankApp.sln"]:::external
    CSP["BankApp.csproj"]:::external
    ASM["AssemblyInfo.cs"]:::external

    %% Presentation Layer
    CLI["CLI Interface\n(Program.cs + Command Parser)"]:::presentation

    %% Service Layer
    SERV1["AccountService"]:::service
    SERV2["CustomerService"]:::service
    SERV3["TransactionService"]:::service

    %% Domain Layer
    DOM1["BankAccount Entity\n(BankAccount.cs)"]:::domain
    DOM2["Customer Entity"]:::domain
    DOM3["Transaction Entity"]:::domain

    %% Persistence Layer
    PERS["FileRepository\n(info.txt)"]:::persistence

    %% Configuration
    CONFIG["App.config"]:::config

    %% Relationships
    SOL --> CSP
    CSP --> ASM
    CSP --> CLI
    CSP --> SERV1
    CSP --> SERV2
    CSP --> SERV3
    CSP --> DOM1
    CSP --> DOM2
    CSP --> DOM3
    CSP --> PERS
    CSP --> CONFIG

    CLI -->|"ResolveCommand()"| SERV1
    CLI -->|"ResolveCommand()"| SERV2
    CLI -->|"ResolveCommand()"| SERV3

    SERV1 -->|"CreateAccount()"| DOM1
    SERV1 -->|"SaveEntities()"| PERS

    SERV2 -->|"CreateCustomer()"| DOM2
    SERV2 -->|"SaveEntities()"| PERS

    SERV3 -->|"ProcessTransaction()"| DOM3
    SERV3 -->|"SaveEntities()"| PERS

    CONFIG -.->|"storagePath"| CLI
    CONFIG -.->|"storagePath"| SERV1
    CONFIG -.->|"storagePath"| SERV2
    CONFIG -.->|"storagePath"| SERV3

    %% Legend
    subgraph "Legend"
        LEG_P["Presentation Layer"]:::presentation
        LEG_S["Service Layer"]:::service
        LEG_D["Domain Layer"]:::domain
        LEG_Pe["Persistence Layer"]:::persistence
        LEG_C["Configuration"]:::config
        LEG_E["External/Assembly"]:::external
    end

    %% Click Events
    click SOL "https://github.com/onesahdevsinh/bank-management-app-dotnet-cli/blob/master/BankApp.sln"
    click CSP "https://github.com/onesahdevsinh/bank-management-app-dotnet-cli/blob/master/BankApp/BankApp.csproj"
    click ASM "https://github.com/onesahdevsinh/bank-management-app-dotnet-cli/blob/master/BankApp/Properties/AssemblyInfo.cs"
    click CLI "https://github.com/onesahdevsinh/bank-management-app-dotnet-cli/blob/master/BankApp/Program.cs"
    click DOM1 "https://github.com/onesahdevsinh/bank-management-app-dotnet-cli/blob/master/BankApp/BankAccount.cs"
    click PERS "https://github.com/onesahdevsinh/bank-management-app-dotnet-cli/blob/master/BankApp/info.txt"
    click CONFIG "https://github.com/onesahdevsinh/bank-management-app-dotnet-cli/blob/master/BankApp/App.config"

    %% Styles
    classDef presentation fill:#D0E6FF,stroke:#1C4E80,stroke-width:2px;
    classDef service fill:#E8F4D9,stroke:#4C8C2E,stroke-width:2px;
    classDef domain fill:#FFF4D9,stroke:#CC8400,stroke-width:2px;
    classDef persistence fill:#FDE2E4,stroke:#C92A2A,stroke-width:2px;
    classDef config fill:#F0E6FF,stroke:#6A3BA3,stroke-width:2px,stroke-dasharray: 5 5;
    classDef external fill:#EFEFEF,stroke:#555555,stroke-width:1px,stroke-dasharray: 2 2;
    class LEG_P,LEG_S,LEG_D,LEG_Pe,LEG_C,LEG_E external
```
