How pranjalkuhikar/neurobank works
This repository implements a learning-oriented banking system with separate authentication, account, transaction, and notification services plus web and mobile clients. The principal workflow is registration/login, account management, money transfer, and transaction-history review. The sampled transaction controller performs ledger-backed transfers and publishes completion events; the README documents notifications as a follow-on capability. The README also describes an API gateway, but no gateway implementation appears in the supplied tree, so it is not represented as a repository component. Some client-to-service wiring is inferred only at the API boundary.
Main entry points: transition.controller.js Transfer and history · App.jsx Web banking · account.controller.js Account API · auth.controller.js Authentication API
Components 20
Client applications
- Web banking
client/src/App.jsx - Mobile banking
mobile/app/_layout.tsx - Login and signup
client/src/pages/Login.jsx - Account screens
client/src/pages/Accounts.jsx - Transfer screen
client/src/pages/Transfer.jsx - History screen
client/src/pages/History.jsx - Mobile transfer
mobile/app/(tabs)/transfer.tsx
Identity service
- Authentication API
auth/src/controllers/auth.controller.js - User records
auth/src/models/auth.model.js - Token utilities
auth/src/utils/generateToken.js
Account service
- Account API
account/src/controllers/account.controller.js - Account records
account/src/models/account.model.js
Transaction service
- Transfer and history
transition/src/controllers/transition.controller.js - Transition records
transition/src/models/transition.model.js - Ledger entries
transition/src/models/ledger.model.js - Transaction account model
transition/src/models/account.model.js
Event notifications
- RabbitMQ queues
transition/src/broker/rabbit.js - Notification consumer
notification/src/broker/notificationConsumer.js - Email delivery
notification/src/utils/email.js
Other components
- Customer
Connections 24
- Customer → Web banking: uses
- Customer → Mobile banking: uses
- Web banking → Login and signup: routes to
client/src/App.jsx - Web banking → Account screens: routes to
client/src/App.jsx - Web banking → Transfer screen: routes to
client/src/App.jsx - Web banking → History screen: routes to
client/src/App.jsx - Login and signup → Authentication API: requests
- Account screens → Account API: requests
- Transfer screen → Account API: loads accounts
client/src/pages/Transfer.jsx - Transfer screen → Transfer and history: submits transfer
client/src/pages/Transfer.jsx - History screen → Transfer and history: requests history
- Mobile transfer → Account API: loads accounts
mobile/app/(tabs)/transfer.tsx - Mobile transfer → Transfer and history: submits transfer
mobile/app/(tabs)/transfer.tsx - Authentication API → User records: reads and writes
auth/src/controllers/auth.controller.js - Authentication API → Token utilities: generates token
auth/src/controllers/auth.controller.js - Authentication API → RabbitMQ queues: publishes signup
auth/src/controllers/auth.controller.js - Account API → Account records: reads and writes
account/src/controllers/account.controller.js - Account API → RabbitMQ queues: publishes account events
account/src/controllers/account.controller.js - Transfer and history → Transition records: reads and writes
transition/src/controllers/transition.controller.js - Transfer and history → Ledger entries: reads and writes
transition/src/controllers/transition.controller.js - Transfer and history → Transaction account model: looks up accounts
transition/src/controllers/transition.controller.js - Transfer and history → RabbitMQ queues: publishes completion
transition/src/controllers/transition.controller.js - Transfer and history → Notification consumer: requests notifications
transition/src/controllers/transition.controller.js - Notification consumer → Email delivery: sends email
notification/src/broker/notificationConsumer.js