# ose-jossy/nova-bank architecture

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

- Interactive diagram: https://gitdiagram.com/ose-jossy/nova-bank
- Repository: https://github.com/ose-jossy/nova-bank

## Overview

Nova is a banking app with a React client and separate Express services for authentication, accounts, and transactions. The main evidenced workflow is registration or login with email-code verification, followed by authenticated transfers or airtime purchases and transaction history. The README also describes investing, bills, multi-currency wallets, and identity tiers; these are retained as product capabilities, but their backend implementation is not established by the excerpts. The accounts-service excerpt duplicates auth-service code, so account behavior beyond documented service calls is uncertain.

Main entry points: [`frontend/src/main.jsx`](https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx) (Banking interface), [`services/transactions-service/src/server.js`](https://github.com/ose-jossy/nova-bank/blob/main/services/transactions-service/src/server.js) (Transactions service), [`services/auth-service/src/server.js`](https://github.com/ose-jossy/nova-bank/blob/main/services/auth-service/src/server.js) (Auth service), [`services/accounts-service/src/server.js`](https://github.com/ose-jossy/nova-bank/blob/main/services/accounts-service/src/server.js) (Accounts service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client"]
  node_app["Banking interface<br/>[main.jsx]"]
end

subgraph group_identity["Identity"]
  node_auth["Auth service<br/>[server.js]"]
  node_users[("User records<br/>[server.js]")]
  node_email["Email delivery"]
end

subgraph group_money["Accounts and payments"]
  node_accounts["Accounts service<br/>[server.js]"]
  node_accountdb[("Account data<br/>[server.js]")]
  node_transactions["Transactions service<br/>[server.js]"]
  node_txdb[("Transaction records<br/>[server.js]")]
end

subgraph group_product["Banking features"]
  node_transfers["Peer transfers<br/>[main.jsx]"]
  node_airtime["Airtime payments<br/>[main.jsx]"]
  node_activity["Transaction history<br/>[main.jsx]"]
  node_investing["Investing<br/>[main.jsx]"]
  node_bills["Utility bills"]
  node_wallets["International wallets"]
  node_onboarding["Identity tiers<br/>[main.jsx]"]
end

node_customer(("Customer"))

node_customer -->|"uses"| node_app
node_app -->|"authenticates"| node_auth
node_auth -->|"reads and writes"| node_users
node_auth -->|"sends codes"| node_email
node_auth -->|"provisions account"| node_accounts
node_app -->|"opens"| node_transfers
node_transfers -->|"submits transfer"| node_transactions
node_app -->|"opens"| node_airtime
node_airtime -->|"submits purchase"| node_transactions
node_app -.->|"opens"| node_activity
node_activity -.->|"requests history"| node_transactions
node_transactions -->|"reads and writes"| node_txdb
node_transactions -->|"checks and changes balance"| node_accounts
node_transactions -->|"resolves recipient"| node_auth
node_accounts -.->|"stores account data"| node_accountdb
node_app -->|"offers"| node_investing
node_customer -.->|"can pay"| node_bills
node_customer -.->|"can hold"| node_wallets
node_customer -.->|"can complete"| node_onboarding

click node_app "https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx"
click node_auth "https://github.com/ose-jossy/nova-bank/blob/main/services/auth-service/src/server.js"
click node_users "https://github.com/ose-jossy/nova-bank/blob/main/services/auth-service/src/server.js"
click node_accounts "https://github.com/ose-jossy/nova-bank/blob/main/services/accounts-service/src/server.js"
click node_accountdb "https://github.com/ose-jossy/nova-bank/blob/main/services/accounts-service/src/server.js"
click node_transactions "https://github.com/ose-jossy/nova-bank/blob/main/services/transactions-service/src/server.js"
click node_txdb "https://github.com/ose-jossy/nova-bank/blob/main/services/transactions-service/src/server.js"
click node_transfers "https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx"
click node_airtime "https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx"
click node_activity "https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx"
click node_investing "https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx"
click node_onboarding "https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx"

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_app toneBlue
class node_auth,node_users,node_email toneAmber
class node_accounts,node_accountdb,node_transactions,node_txdb toneMint
class node_transfers,node_airtime,node_activity,node_investing,node_bills,node_wallets,node_onboarding toneRose
class node_customer toneIndigo
```

## Components

### Client

- [Banking interface](https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`

### Identity

- [Auth service](https://github.com/ose-jossy/nova-bank/blob/main/services/auth-service/src/server.js): `services/auth-service/src/server.js`
- [User records](https://github.com/ose-jossy/nova-bank/blob/main/services/auth-service/src/server.js): `services/auth-service/src/server.js`
- **Email delivery**

### Accounts and payments

- [Accounts service](https://github.com/ose-jossy/nova-bank/blob/main/services/accounts-service/src/server.js): `services/accounts-service/src/server.js`
- [Account data](https://github.com/ose-jossy/nova-bank/blob/main/services/accounts-service/src/server.js): `services/accounts-service/src/server.js`
- [Transactions service](https://github.com/ose-jossy/nova-bank/blob/main/services/transactions-service/src/server.js): `services/transactions-service/src/server.js`
- [Transaction records](https://github.com/ose-jossy/nova-bank/blob/main/services/transactions-service/src/server.js): `services/transactions-service/src/server.js`

### Banking features

- [Peer transfers](https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Airtime payments](https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Transaction history](https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Investing](https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- **Utility bills**
- **International wallets**
- [Identity tiers](https://github.com/ose-jossy/nova-bank/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`

### Other components

- **Customer**

## Connections

- Customer → Banking interface: uses (evidence: `README.md`)
- Banking interface → Auth service: authenticates (evidence: `frontend/src/main.jsx`)
- Auth service → User records: reads and writes (evidence: `services/auth-service/src/server.js`)
- Auth service → Email delivery: sends codes (evidence: `services/auth-service/src/server.js`)
- Auth service → Accounts service: provisions account (evidence: `services/auth-service/src/server.js`)
- Banking interface → Peer transfers: opens (evidence: `frontend/src/main.jsx`)
- Peer transfers → Transactions service: submits transfer (evidence: `frontend/src/main.jsx`)
- Banking interface → Airtime payments: opens (evidence: `frontend/src/main.jsx`)
- Airtime payments → Transactions service: submits purchase (evidence: `frontend/src/main.jsx`)
- Banking interface → Transaction history: opens (evidence: `frontend/src/main.jsx`)
- Transaction history → Transactions service: requests history
- Transactions service → Transaction records: reads and writes (evidence: `services/transactions-service/src/server.js`)
- Transactions service → Accounts service: checks and changes balance (evidence: `services/transactions-service/src/server.js`)
- Transactions service → Auth service: resolves recipient (evidence: `services/transactions-service/src/server.js`)
- Accounts service → Account data: stores account data (evidence: `services/accounts-service/src/server.js`)
- Banking interface → Investing: offers (evidence: `frontend/src/main.jsx`)
- Customer → Utility bills: can pay (evidence: `README.md`)
- Customer → International wallets: can hold (evidence: `README.md`)
- Customer → Identity tiers: can complete (evidence: `README.md`)
