How lokeshzenbook-coder/bank-application works
This is a React banking portal backed by Go microservices, an API gateway, and shared platform infrastructure. The main user path is browser → portal authentication and banking pages → gateway → banking services; money operations post balanced entries to the ledger, with transaction events published asynchronously for notifications, risk, audit, and reporting. The README documents these system-level connections; the source excerpts confirm the portal routes and selected service wiring. Many service internals were not sampled, so their finer call relationships are intentionally omitted.
Main entry points: App.jsx Portal routes · proxy.go API gateway · producer.go Kafka event bus · service.go Money transactions
Components 34
Customer portal
- Portal routes
frontend/src/App.jsx - Portal auth
frontend/src/auth.jsx - Portal layout
frontend/src/components/Layout.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Accounts page
frontend/src/pages/Accounts.jsx - Deposit page
frontend/src/pages/Deposit.jsx - Transfer page
frontend/src/pages/Transfer.jsx - Cards page
frontend/src/pages/Cards.jsx - Loans page
frontend/src/pages/Loans.jsx - Login page
frontend/src/pages/Login.jsx - Registration page
frontend/src/pages/Register.jsx
Identity and access
- Authentication
services/auth-service/internal/service/service.go - Authorization
services/authz-service/internal/service/service.go - Customer identity
services/customer-service/internal/service/service.go
Banking operations
- Accounts
services/account-service/internal/service/service.go - Money transactions
services/transaction-service/internal/service/service.go - Double-entry ledger
services/ledger-service/internal/service/service.go - Payments and wallets
services/payment-service/internal/service/service.go
Products and profiles
- Banking products
services/card-service/internal/service/service.go - Loans
services/loan-service/internal/service/service.go - Deposit products
services/fixed-deposit-service/internal/service/service.go - Customer profile
services/profile-service/internal/service/service.go
Events and insights
- Kafka event bus
pkg/kafka/producer.go - Transactional outbox
pkg/outbox/outbox.go - Notifications
services/notification-service/internal/service/service.go - Fraud monitoring
services/fraud-service/internal/service/service.go - Audit log
services/audit-service/internal/service/service.go - Analytics and reports
services/analytics-service/internal/service/service.go
Platform infrastructure
- API gateway
services/api-gateway/internal/proxy/proxy.go - PostgreSQL
pkg/postgres/postgres.go - Redis
pkg/redis/redis.go - S3 documents
pkg/s3/s3.go - gRPC contracts
proto/ledger/v1/ledger.proto
Other components
- Browser
Connections 32
- Browser → Portal routes: uses portal
README.md - Portal routes → Portal auth: guards routes
frontend/src/App.jsx - Portal routes → Portal layout: renders
frontend/src/App.jsx - Portal routes → Dashboard: routes to
frontend/src/App.jsx - Portal routes → Accounts page: routes to
frontend/src/App.jsx - Portal routes → Deposit page: routes to
frontend/src/App.jsx - Portal routes → Transfer page: routes to
frontend/src/App.jsx - Portal routes → Cards page: routes to
frontend/src/App.jsx - Portal routes → Loans page: routes to
frontend/src/App.jsx - Portal routes → Login page: routes to
frontend/src/App.jsx - Portal routes → Registration page: routes to
frontend/src/App.jsx - Browser → API gateway: REST requests
README.md - API gateway → Authentication: routes requests
README.md - API gateway → Accounts: routes requests
README.md - API gateway → Money transactions: routes requests
README.md - API gateway → Payments and wallets: routes requests
README.md - API gateway → Banking products: routes requests
README.md - API gateway → Loans: routes requests
README.md - API gateway → Customer profile: routes requests
README.md - Accounts → Double-entry ledger: queries balances
README.md - Money transactions → Double-entry ledger: posts entries
README.md - Money transactions → Transactional outbox: records events
- Transactional outbox → Kafka event bus: publishes events
- Kafka event bus → Notifications: delivers events
- Kafka event bus → Fraud monitoring: delivers events
- Kafka event bus → Audit log: delivers events
- Kafka event bus → Analytics and reports: delivers events
- Money transactions → PostgreSQL: stores operations
- Authentication → Redis: stores sessions
- Double-entry ledger → gRPC contracts: implements contract
README.md - API gateway → gRPC contracts: internal gRPC
README.md - Banking products → S3 documents: stores documents
README.md