How gaurab-arl/securebank works
This is a PHP/MySQL bank-management web app. Customers enter through the home page, create an account or log in, then use the dashboard to view account summaries and transaction history or initiate transfers; logout clears the session. The README also describes deposits, withdrawals, and admin management, but the sampled implementation chiefly exposes transfer and dashboard behavior, and the tree has no distinct admin module. Dashboard source excerpts are partial, so the graph omits uncertain internal wiring. Database setup and authentication are shown separately as implemented.
Main entry points: dashboard.php Account dashboard · login.html Login page · auth.php Authentication · signup.html Signup page
Components 17
Web entry
- Home page
index.html - Home interactions
js/main.js - Signup page
pages/signup.html - Login page
pages/login.html - Signup validation
js/signup.js - Password visibility
js/login.js
Identity and setup
- Database setup
php/setup.php - Authentication
php/auth.php - Session logout
php/logout.php
Banking operations
- Account dashboard
php/dashboard.php - Dashboard interactions
js/dashboard.js - Transfers
php/dashboard.php - Accounts and balances
php/dashboard.php - Transaction history
php/dashboard.php - Admin capabilities
php
Persistent state
- MySQL database
Other components
- Customer
Connections 20
- Customer → Home page: opens
- Home page → Home interactions: loads
- Home interactions → Database setup: requests setup
- Customer → Signup page: registers
- Customer → Login page: signs in
- Signup page → Signup validation: loads validation
- Login page → Password visibility: loads controls
- Signup page → Authentication: submits signup
- Login page → Authentication: submits login
- Authentication → MySQL database: reads and writes users
- Database setup → MySQL database: creates database and users table
- Authentication → Account dashboard: redirects after login
- Customer → Account dashboard: uses
- Account dashboard → Dashboard interactions: loads interactions
- Account dashboard → Accounts and balances: renders
- Account dashboard → Transaction history: renders
- Account dashboard → Transfers: handles transfer requests
- Account dashboard → MySQL database: reads and updates banking data
- Customer → Session logout: logs out
- Session logout → Login page: redirects