How panharo/java_bank_final_project works
J Bank is a small banking demo with console and browser interfaces sharing file-backed account logic. Users register or log in, then view balances, deposit, withdraw, transfer, or inspect transaction history. The web flow runs through the built-in HTTP server; the console calls the shared store directly. The README documents the API and file formats, while the excerpts show key route registrations and handler calls. Transfer recipient crediting is explicitly incomplete. The graph omits uncertain internal web-server wiring not shown in the excerpts.
Main entry points: BankDataStore.java Banking operations · WebServer.java HTTP server and API · Main.java Console menus · auth.js Browser auth
Components 11
User interfaces
- Console menus
src/Main.java - Browser auth
web/auth.js - Account dashboard
web/dashboard.js - Web pages and styles
web/index.html
Web delivery
- HTTP server and API
src/WebServer.java
Banking logic
- Banking operations
src/BankDataStore.java - Account model
src/Account.java
File storage
- User records
src/BankDataStore.java - Account balances
src/BankDataStore.java - Transaction history
src/BankDataStore.java
Other components
- Bank user
Connections 13
- Bank user → Console menus: uses
README.md - Console menus → Banking operations: calls operations
src/Main.java - Console menus → Account model: creates and updates
src/Main.java - Bank user → Browser auth: uses
README.md - Browser auth → HTTP server and API: posts credentials
web/auth.js - Bank user → Account dashboard: uses
README.md - Account dashboard → HTTP server and API: requests account actions
web/dashboard.js - HTTP server and API → Web pages and styles: serves pages
README.md - HTTP server and API → Banking operations: dispatches API calls
src/WebServer.java - Banking operations → Account model: creates and updates
src/BankDataStore.java - Banking operations → User records: reads and writes
src/BankDataStore.java - Banking operations → Account balances: reads and writes
src/BankDataStore.java - Banking operations → Transaction history: records and reads
src/BankDataStore.java