How jatinrwt01/bank_management_system works
This is an online banking system with customer, employee, and administrator portals. Users register or sign in, then use role-gated screens for account balances, deposits, withdrawals, transfers, and transaction history; staff can search customers and process desk transactions, while administrators manage customer status and review transactions. The frontend API client calls the backend, whose route handlers authorize requests and invoke controllers that access MySQL. Major screens and backend capabilities are represented, but unsampled controller and page internals are not inferred beyond indexed imports and documented routes.
Main entry points: App.jsx Route application · api.js HTTP API client · server.js Express API server · db.js MySQL pool
Components 27
Web client
- Route application
frontend/src/App.jsx - Navigation
frontend/src/components/Navbar.jsx - Role route guard
frontend/src/components/ProtectedRoute.jsx - Login and registration
frontend/src/pages/LoginPage.jsx - Registration screen
frontend/src/pages/RegisterPage.jsx - Customer dashboard
frontend/src/pages/DashboardPage.jsx - Transaction history
frontend/src/pages/TransactionsPage.jsx - Deposit withdraw transfer
frontend/src/pages/TransferPage.jsx - Admin portal
frontend/src/pages/admin/AdminDashboardPage.jsx - Employee portal
frontend/src/pages/employee/EmployeeDashboardPage.jsx
API and access control
- HTTP API client
frontend/src/services/api.js - Express API server
backend/server.js - Authentication routes
backend/routes/authRoutes.js - Account routes
backend/routes/accountRoutes.js - Transaction routes
backend/routes/transactionRoutes.js - Admin routes
backend/routes/adminRoutes.js - Employee routes
backend/routes/employeeRoutes.js - Token verification
backend/middleware/authMiddleware.js - Role authorization
backend/middleware/roleMiddleware.js
Banking operations
- Identity handling
backend/controllers/authController.js - Account queries
backend/controllers/accountController.js - Customer transactions
backend/controllers/transactionController.js
Staff and administration
- Customer administration
backend/controllers/adminController.js - Staff customer desk
backend/controllers/employeeController.js
Configuration and storage
- MySQL pool
backend/config/db.js - MySQL database
Other components
- Bank user
Connections 39
- Bank user → Route application: uses
frontend/src/App.jsx - Route application → Navigation: renders
frontend/src/App.jsx - Route application → Role route guard: gates routes
frontend/src/App.jsx - Route application → Login and registration: routes to
frontend/src/App.jsx - Route application → Registration screen: routes to
frontend/src/App.jsx - Route application → Customer dashboard: routes to
frontend/src/App.jsx - Route application → Transaction history: routes to
frontend/src/App.jsx - Route application → Deposit withdraw transfer: routes to
frontend/src/App.jsx - Route application → Admin portal: routes to
frontend/src/App.jsx - Route application → Employee portal: routes to
frontend/src/App.jsx - Login and registration → HTTP API client: calls
frontend/src/pages/LoginPage.jsx - Registration screen → HTTP API client: calls
frontend/src/pages/RegisterPage.jsx - Customer dashboard → HTTP API client: calls
frontend/src/pages/DashboardPage.jsx - Transaction history → HTTP API client: calls
frontend/src/pages/TransactionsPage.jsx - Deposit withdraw transfer → HTTP API client: calls
frontend/src/pages/TransferPage.jsx - Admin portal → HTTP API client: calls
frontend/src/pages/admin/AdminDashboardPage.jsx - Employee portal → HTTP API client: calls
frontend/src/pages/employee/EmployeeDashboardPage.jsx - HTTP API client → Express API server: HTTP requests
frontend/src/services/api.js - Express API server → Authentication routes: mounts
backend/server.js - Express API server → Account routes: mounts
backend/server.js - Express API server → Transaction routes: mounts
backend/server.js - Express API server → Admin routes: mounts
backend/server.js - Express API server → Employee routes: mounts
backend/server.js - Authentication routes → Identity handling: dispatches
backend/routes/authRoutes.js - Account routes → Account queries: dispatches
backend/routes/accountRoutes.js - Transaction routes → Customer transactions: dispatches
backend/routes/transactionRoutes.js - Admin routes → Customer administration: dispatches
backend/routes/adminRoutes.js - Employee routes → Staff customer desk: dispatches
backend/routes/employeeRoutes.js - Transaction routes → Token verification: checks token
backend/routes/transactionRoutes.js - Admin routes → Token verification: checks token
backend/routes/adminRoutes.js - Admin routes → Role authorization: checks role
backend/routes/adminRoutes.js - Employee routes → Token verification: checks token
backend/routes/employeeRoutes.js - Employee routes → Role authorization: checks role
backend/routes/employeeRoutes.js - Identity handling → MySQL pool: queries
backend/controllers/authController.js - Account queries → MySQL pool: queries
backend/controllers/accountController.js - Customer transactions → MySQL pool: queries
backend/controllers/transactionController.js - Customer administration → MySQL pool: queries
backend/controllers/adminController.js - Staff customer desk → MySQL pool: queries
backend/controllers/employeeController.js - MySQL pool → MySQL database: connects
backend/config/db.js