How jtr-0901/banking-system-fullstack works
Banking System is a React banking application backed by an Express REST API and PostgreSQL. Users register or sign in, complete two-factor authentication, then manage accounts, review balances and transaction history, and initiate transfers, external payments, or scheduled bills. The backend routes delegate domain operations to models, which persist banking data; account identifiers and IBANs are encrypted and hashed. A separate CLI supports database and user/account/transaction operations. Some links reflect README or source-index references rather than inspected call sites, so those are labeled accordingly.
Main entry points: App.js Application routes · server.js Express server · apiClient.js HTTP API client · transactions.js Transaction routes
Components 29
React client
- Application routes
frontend/src/App.js - Session and auth state
frontend/src/context/AuthContext.js - Login and registration
frontend/src/components/Auth/Login.js - Two-factor challenge
frontend/src/components/Auth/TwoFactorChallenge.js - Dashboard
frontend/src/components/Dashboard/Dashboard.js - Account management
frontend/src/components/Accounts/Accounts.js - Transaction history
frontend/src/components/Transactions/Transactions.js - Transaction form
frontend/src/components/Transactions/TransactionForm.js - External payments
frontend/src/components/Payments/Payments.js - Scheduled bills
frontend/src/components/Bills/Bills.js - HTTP API client
frontend/src/lib/apiClient.js
API and routing
- Express server
backend/server.js - Request validation
backend/middleware/validation.js
Identity and security
- Authentication routes
backend/routes/auth.js - Token authentication
backend/middleware/auth.js - User records
backend/models/User.js - Account and IBAN protection
backend/utils/accountNumbers.js
Banking domain
- Account routes
backend/routes/accounts.js - Transaction routes
backend/routes/transactions.js - Payment portal
backend/routes/paymentPortal.js - Scheduled payment routes
backend/routes/scheduledPayments.js - Account operations
backend/models/Account.js - Transaction operations
backend/models/Transaction.js - Scheduled payment records
backend/models/ScheduledPayment.js
Persistence and operations
- PostgreSQL access
backend/config/database.js - Schema migrations
backend/database/migrations.js - Banking CLI
backend/cli.js
Other components
- Bank customer
- Payment partner
Connections 48
- Bank customer → Application routes: uses
README.md - Application routes → Session and auth state: provides auth
frontend/src/App.js - Application routes → Login and registration: routes to
frontend/src/App.js - Application routes → Dashboard: routes to
frontend/src/App.js - Application routes → Account management: routes to
frontend/src/App.js - Application routes → Transaction history: routes to
frontend/src/App.js - Application routes → Transaction form: routes to
frontend/src/App.js - Application routes → External payments: routes to
frontend/src/App.js - Application routes → Scheduled bills: routes to
frontend/src/App.js - Login and registration → Two-factor challenge: renders challenge
frontend/src/components/Auth/Login.js - Session and auth state → HTTP API client: calls
frontend/src/context/AuthContext.js - Dashboard → HTTP API client: requests data
frontend/src/components/Dashboard/Dashboard.js - Account management → HTTP API client: requests data
frontend/src/components/Accounts/Accounts.js - Transaction history → HTTP API client: requests data
frontend/src/components/Transactions/Transactions.js - Transaction form → HTTP API client: submits transactions
frontend/src/components/Transactions/TransactionForm.js - External payments → HTTP API client: requests payments
frontend/src/components/Payments/Payments.js - Scheduled bills → HTTP API client: requests bills
frontend/src/components/Bills/Bills.js - HTTP API client → Express server: calls API
README.md - Express server → Authentication routes: mounts
backend/server.js - Express server → Account routes: mounts
backend/server.js - Express server → Transaction routes: mounts
backend/server.js - Express server → Scheduled payment routes: mounts
backend/server.js - Express server → Payment portal: mounts
backend/server.js - Express server → PostgreSQL access: connects
backend/server.js - Express server → Schema migrations: creates schema
backend/server.js - Authentication routes → User records: uses
backend/routes/auth.js - Authentication routes → Token authentication: uses
backend/routes/auth.js - Authentication routes → Request validation: validates requests
backend/routes/auth.js - Authentication routes → Bank customer: authenticates
README.md - Account routes → Token authentication: guards routes
backend/routes/accounts.js - Account routes → Request validation: validates requests
backend/routes/accounts.js - Account routes → Account operations: uses
backend/routes/accounts.js - Account routes → Transaction operations: uses
backend/routes/accounts.js - Transaction routes → Token authentication: guards routes
backend/routes/transactions.js - Transaction routes → Request validation: validates requests
backend/routes/transactions.js - Transaction routes → Account operations: uses
backend/routes/transactions.js - Transaction routes → Transaction operations: uses
backend/routes/transactions.js - Payment partner → Transaction routes: sends incoming payment
README.md - Payment portal → Account operations: uses
backend/routes/paymentPortal.js - Payment portal → Transaction operations: uses
backend/routes/paymentPortal.js - Scheduled payment routes → Token authentication: guards routes
backend/routes/scheduledPayments.js - Scheduled payment routes → Request validation: validates requests
backend/routes/scheduledPayments.js - Scheduled payment routes → Account operations: uses
backend/routes/scheduledPayments.js - Scheduled payment routes → Scheduled payment records: uses
backend/routes/scheduledPayments.js - Account operations → PostgreSQL access: queries
backend/models/Account.js - Transaction operations → PostgreSQL access: queries
backend/models/Transaction.js - User records → PostgreSQL access: queries
backend/models/User.js - Account operations → Account and IBAN protection: protects identifiers
backend/models/Account.js