How vaishusatpute/spx-banking-application works
SPX is a banking portal backed by feature-isolated Flask APIs, routed through an NGINX gateway to MySQL. The main customer journey is registration OTP verification, account creation, login OTP verification, then authenticated account and banking operations such as transfers and statements; separate feature APIs cover loans, cards, investments, insurance, customer services, and administration. The graph reflects documented deployment/routing and sampled API behavior. Some feature implementations and gateway routing details were not sampled, so those relationships are documented or left unverified rather than inferred from imports.
Main entry points: default.conf NGINX gateway · schema.sql MySQL · registration.py Registration · auth.py Login and OTP
Components 17
Browser portal
- SPX portal
gateway/public/app.js
API gateway
- NGINX gateway
gateway/default.conf
Identity features
- Registration
services/spx/features/registration.py - Login and OTP
services/spx/features/auth.py - Identity helpers
services/spx/common.py
Banking features
- Accounts and profile
services/spx/features/accounts.py - Transfers
services/spx/features/payments.py - Statements
services/spx/features/statements.py - Loans
services/spx/features/loans.py - Cards
services/spx/features/cards.py - Investments
services/spx/features/investments.py - Insurance
services/spx/features/insurance.py - Customer services
services/spx/features/services.py
Operations and data
- Administration
services/spx/features/admin.py - MySQL
database/schema.sql
Other components
- Customer
- SMTP mail
Connections 28
- Customer → SPX portal: uses
README.md - SPX portal → NGINX gateway: calls APIs
README.md - NGINX gateway → Registration: routes
README.md - NGINX gateway → Login and OTP: routes
README.md - NGINX gateway → Accounts and profile: routes
README.md - NGINX gateway → Transfers: routes
README.md - NGINX gateway → Statements: routes
README.md - NGINX gateway → Loans: routes
README.md - NGINX gateway → Cards: routes
README.md - NGINX gateway → Investments: routes
README.md - NGINX gateway → Insurance: routes
README.md - NGINX gateway → Customer services: routes
README.md - NGINX gateway → Administration: routes
README.md - Registration → Identity helpers: uses OTP
services/spx/features/registration.py - Login and OTP → Identity helpers: uses OTP
services/spx/features/auth.py - Registration → MySQL: creates accounts
services/spx/features/registration.py - Registration → SMTP mail: sends OTP
- Login and OTP → MySQL: reads users
services/spx/features/auth.py - Login and OTP → SMTP mail: sends OTP
- Accounts and profile → MySQL: reads and updates
services/spx/features/accounts.py - Transfers → MySQL: updates balances
services/spx/features/payments.py - Statements → MySQL: queries transactions
services/spx/features/statements.py - Cards → MySQL: stores card data
services/spx/features/cards.py - Investments → MySQL: stores holdings
services/spx/features/investments.py - Administration → MySQL: queries banking data
services/spx/features/admin.py - Loans → MySQL: uses banking data
README.md - Insurance → MySQL: uses banking data
README.md - Customer services → MySQL: stores requests
README.md