How priyansh019/novabank works
NovaBank is a banking web app for account holders to sign in, view balances and account activity, and make deposits, withdrawals, transfers, and QR payments. The React app routes these tasks through a shared API client, which attempts backend requests and includes a client-side fallback. The repository also contains a Python banking engine and a TypeScript server; their detailed runtime relationship is not established by the excerpts, so the graph keeps those services distinct. Connections reflect shown imports and calls; unsampled capabilities are represented by their known page paths.
Main entry points: App.tsx App routing · api.ts API client · bank.ts Bank data types · Dashboard.tsx Dashboard
Components 25
App and navigation
- App routing
src/App.tsx
Banking workflows
- Sign in
src/pages/Login.tsx - Dashboard
src/pages/Dashboard.tsx - Account details
src/pages/AccountDetails.tsx - Deposit
src/pages/Deposit.tsx - Withdraw
src/pages/Withdraw.tsx - Transfer
src/pages/Transfer.tsx - Transactions
src/pages/Transactions.tsx - Change PIN
src/pages/ChangePin.tsx
QR payments
- My QR
src/pages/MyQR.tsx - Scan and pay
src/pages/ScanPay.tsx - QR scanner
src/components/QRScannerModal.tsx
Bank services and data
- API client
src/services/api.ts - HTTP server
server.ts - Bank engine
bank_engine.py - Bank operations
bank.py - Account records
account.csv - Transaction records
transaction.csv - Blocked accounts
blocked_accounts.json - Bank data types
src/types/bank.ts
Shared interface
- Balance card
src/components/BalanceCard.tsx - Bank identity
src/components/BankLogo.tsx - Navigation sidebar
src/components/Sidebar.tsx - Transaction table
src/components/TransactionTable.tsx
Other components
- Account holder
Connections 48
- Account holder → App routing: uses
- App routing → Sign in: shows
src/App.tsx - App routing → Dashboard: routes to
src/App.tsx - App routing → Account details: routes to
src/App.tsx - App routing → Deposit: routes to
src/App.tsx - App routing → Withdraw: routes to
src/App.tsx - App routing → Transfer: routes to
src/App.tsx - App routing → Scan and pay: routes to
src/App.tsx - App routing → Transactions: routes to
src/App.tsx - App routing → Change PIN: routes to
src/App.tsx - App routing → My QR: routes to
src/App.tsx - App routing → API client: fetches account
src/App.tsx - App routing → Navigation sidebar: renders
src/App.tsx - Sign in → API client: authenticates
src/pages/Login.tsx - Dashboard → API client: loads data
src/pages/Dashboard.tsx - Dashboard → Balance card: renders
src/pages/Dashboard.tsx - Dashboard → Transaction table: renders
src/pages/Dashboard.tsx - Transactions → API client: loads history
src/pages/Transactions.tsx - Transactions → Transaction table: renders
src/pages/Transactions.tsx - Deposit → API client: submits deposit
src/pages/Deposit.tsx - Withdraw → API client: submits withdrawal
src/pages/Withdraw.tsx - Transfer → API client: submits transfer
src/pages/Transfer.tsx - Transfer → QR scanner: opens scanner
src/pages/Transfer.tsx - Scan and pay → API client: submits payment
src/pages/ScanPay.tsx - Scan and pay → QR scanner: opens scanner
src/pages/ScanPay.tsx - Change PIN → API client: changes PIN
src/pages/ChangePin.tsx - My QR → API client: refreshes account
src/pages/MyQR.tsx - QR scanner → API client: checks QR image
src/components/QRScannerModal.tsx - API client → Bank data types: uses types
src/services/api.ts - Sign in → Bank data types: uses types
src/pages/Login.tsx - Deposit → Bank data types: uses types
src/pages/Deposit.tsx - Withdraw → Bank data types: uses types
src/pages/Withdraw.tsx - Transfer → Bank data types: uses types
src/pages/Transfer.tsx - Scan and pay → Bank data types: uses types
src/pages/ScanPay.tsx - QR scanner → Bank data types: uses types
src/components/QRScannerModal.tsx - Dashboard → Bank data types: uses types
src/pages/Dashboard.tsx - My QR → Bank data types: uses types
src/pages/MyQR.tsx - Transaction table → Bank data types: uses types
src/components/TransactionTable.tsx - API client → HTTP server: requests
- HTTP server → Bank engine: delegates
- Bank operations → Bank engine: uses engine
- Bank engine → Account records: reads or writes
- Bank engine → Transaction records: reads or writes
- Bank engine → Blocked accounts: checks
- App routing → Bank identity: renders
src/App.tsx - Dashboard → Balance card: renders
src/pages/Dashboard.tsx - Navigation sidebar → Bank identity: renders
src/components/Sidebar.tsx - My QR → Bank identity: renders
src/pages/MyQR.tsx