How saswatbarai/finboard works
Finboard is a demo fintech platform. Users register and verify by OTP, submit identity documents for KYC/OCR review, verify a simulated bank account, then invest and view portfolio activity; administrators review KYC and manage banking. The Next.js feature modules call the API gateway, which routes requests to domain services. Services also use shared contracts and event infrastructure for cross-service work. The README documents these product flows and major domains; some inter-service links below are documented rather than demonstrated in the sampled excerpts.
Main entry points: app.js API gateway · features Web application · kyc.controller.js KYC applications · investment.routes.js Investment orders
Components 24
Customer web
- Web application
apps/customer-web/src/features - Sign-in and signup
apps/customer-web/src/features/auth/screens - KYC submission
apps/customer-web/src/features/kyc/screens - Banking workspace
apps/customer-web/src/features/banking/screens - Portfolio and stocks
apps/customer-web/src/features/investments/screens - Admin review
apps/customer-web/src/features/admin
API routing
- API gateway
services/api-gateway/src/app.js
Identity and KYC
- Authentication
services/auth-service/src/modules/auth/controllers/auth.controller.js - Investor profile
services/profile-service/src/modules/profile/controllers/profile.controller.js - KYC applications
services/kyc-service/src/modules/kyc/controllers/kyc.controller.js - Document OCR
services/ocr-service/src/modules/ocr/services/ocr.service.js
Finance services
- Banking simulation
services/banking-service/src/modules/banking/controllers/banking.controller.js - Banking operations
services/banking-service/src/modules/banking/services/banking.service.js - Investment orders
services/investment-service/src/modules/investment/routes/investment.routes.js - Portfolio holdings
services/investment-service/src/modules/investment/models/portfolio-holding.model.js
Shared platform
- KYC document storage
services/kyc-service/src/modules/kyc/services/document-storage.service.js - Notifications
services/notification-service/src/modules/notification/routes/notification.routes.js - Audit log
services/audit-service/src/modules/audit/services/audit.service.js - Kafka events
packages/kafka/src/producer.js - Service contracts
packages/contracts/src/clients/auth-client.js - MongoDB
- PostgreSQL
- Object storage
Other components
- Investor
Connections 38
- Investor → Web application: uses
README.md - Web application → Sign-in and signup: offers
README.md - Web application → KYC submission: offers
README.md - Web application → Banking workspace: offers
README.md - Web application → Portfolio and stocks: offers
README.md - Web application → Admin review: offers
README.md - Sign-in and signup → API gateway: requests
README.md - KYC submission → API gateway: requests
README.md - Banking workspace → API gateway: requests
README.md - Portfolio and stocks → API gateway: requests
README.md - Admin review → API gateway: requests
README.md - API gateway → Authentication: proxies
services/api-gateway/src/app.js - API gateway → Investor profile: proxies
services/api-gateway/src/app.js - API gateway → KYC applications: proxies
services/api-gateway/src/app.js - API gateway → Document OCR: proxies
README.md - API gateway → Banking simulation: proxies
README.md - API gateway → Investment orders: proxies
README.md - API gateway → Notifications: proxies
README.md - Authentication → Investor profile: creates profile
services/auth-service/src/modules/auth/controllers/auth.controller.js - KYC applications → Document OCR: requests extraction
services/kyc-service/src/modules/kyc/controllers/kyc.controller.js - KYC applications → Investor profile: updates status
services/kyc-service/src/modules/kyc/controllers/kyc.controller.js - KYC applications → KYC document storage: persists documents
services/kyc-service/src/modules/kyc/controllers/kyc.controller.js - KYC document storage → Object storage: uploads files
services/kyc-service/src/modules/kyc/services/document-storage.service.js - Banking simulation → Banking operations: calls
services/banking-service/src/modules/banking/controllers/banking.controller.js - Banking simulation → Kafka events: publishes event
services/banking-service/src/modules/banking/controllers/banking.controller.js - Investment orders → Portfolio holdings: creates holdings
services/investment-service/src/modules/investment/routes/investment.routes.js - Investment orders → Investor profile: checks KYC
services/investment-service/src/modules/investment/routes/investment.routes.js - Investment orders → Banking simulation: checks linked bank
services/investment-service/src/modules/investment/routes/investment.routes.js - Investment orders → Kafka events: publishes events
services/investment-service/src/modules/investment/routes/investment.routes.js - KYC applications → Kafka events: publishes events
services/kyc-service/src/modules/kyc/controllers/kyc.controller.js - Kafka events → Notifications: delivers events
README.md - Kafka events → Audit log: delivers events
README.md - Authentication → MongoDB: stores users
README.md - Investor profile → MongoDB: stores profiles
README.md - KYC applications → MongoDB: stores applications
README.md - Portfolio holdings → MongoDB: stores holdings
README.md - Banking operations → PostgreSQL: stores accounts
README.md - Service contracts → Authentication: calls internal API
packages/contracts/src/clients/auth-client.js