How hayk364/banking-system works
This is an iOS banking client backed by a separate Express/MongoDB API. The user workflow runs from login or signup into a card-and-balance home screen, where users can add funds, send money, add a card, and view transaction history. The Swift model makes HTTP requests; the API handles account, card, balance, and transaction operations against MongoDB, with password encryption helpers. Several controller excerpts are partial and the README is empty, so unsampled capabilities and connections are represented only where the tree or shown references support them.
Main entry points: Model.swift HTTP client · main.js Banking API · ViewController.swift Login · ViewManager.swift View styling
Components 18
iOS client
- Scene startup
BankingSystem/Controller/SceneDelegate.swift - HTTP client
BankingSystem/Model/Model.swift - User data model
BankingSystem/Model/UserModel.swift
Account access
- Login
BankingSystem/Controller/ViewController.swift - Sign up
BankingSystem/Controller/SignUpViewController.swift - Password recovery
BankingSystem/Controller/ForgotPasswordViewController.swift
Banking operations
- Home and transfers
BankingSystem/Controller/HomeViewController.swift - Add card
BankingSystem/Controller/AddCardViewController.swift - Transaction history
BankingSystem/Controller/TrasactionHistoryViewController.swift
API and storage
- Banking API
BankingAPI/main.js - Account routes
BankingAPI/main.js - Card routes
BankingAPI/main.js - Balance and transfer routes
BankingAPI/main.js - Transaction route
BankingAPI/main.js - Password crypto
BankingAPI/back.js - MongoDB
Shared presentation
- View styling
BankingSystem/View/ViewManager.swift
Other components
- Bank customer
Connections 27
- Bank customer → Login: signs in
BankingSystem/Controller/ViewController.swift - Bank customer → Sign up: registers
BankingSystem/Controller/SignUpViewController.swift - Scene startup → Login: restores
BankingSystem/Controller/SceneDelegate.swift - Scene startup → Home and transfers: restores
BankingSystem/Controller/SceneDelegate.swift - Scene startup → Add card: restores
BankingSystem/Controller/SceneDelegate.swift - Login → HTTP client: authenticates
BankingSystem/Controller/ViewController.swift - Sign up → HTTP client: checks and registers
BankingSystem/Controller/SignUpViewController.swift - Login → Password recovery: opens recovery
BankingSystem/Controller/ViewController.swift - Home and transfers → HTTP client: requests banking actions
BankingSystem/Controller/HomeViewController.swift - Home and transfers → Transaction history: opens history
BankingSystem/Controller/HomeViewController.swift - Add card → HTTP client: submits card
BankingSystem/Controller/AddCardViewController.swift - Transaction history → HTTP client: fetches transactions
BankingSystem/Controller/TrasactionHistoryViewController.swift - Login → View styling: styles screen
BankingSystem/Controller/ViewController.swift - Sign up → View styling: styles screen
BankingSystem/Controller/SignUpViewController.swift - Home and transfers → View styling: styles screen
BankingSystem/Controller/HomeViewController.swift - Add card → View styling: styles screen
BankingSystem/Controller/AddCardViewController.swift - Transaction history → View styling: styles screen
BankingSystem/Controller/TrasactionHistoryViewController.swift - HTTP client → Banking API: sends HTTP requests
BankingSystem/Model/Model.swift - Banking API → Account routes: dispatches account requests
BankingAPI/main.js - Banking API → Card routes: dispatches card requests
BankingAPI/main.js - Banking API → Balance and transfer routes: dispatches balance requests
BankingAPI/main.js - Banking API → Transaction route: dispatches history requests
BankingAPI/main.js - Account routes → MongoDB: reads and writes users
BankingAPI/main.js - Card routes → MongoDB: reads and writes cards
BankingAPI/main.js - Balance and transfer routes → MongoDB: updates balances
BankingAPI/main.js - Transaction route → MongoDB: reads transactions
BankingAPI/main.js - Account routes → Password crypto: encrypts passwords
BankingAPI/main.js