How ravi63052/payments-app works
Payments App supports signup/signin, authenticated account management, friend search, balance viewing, and money transfers. The main workflow is a user signing in, searching for a recipient, initiating a transfer, and seeing the updated balance. The graph separates the React interface and API operations from Express routing, authentication, domain controllers, and Mongo-backed models. The README documents broad product capabilities; source excerpts and the SOURCE INDEX support the shown module relationships. Some frontend pages and backend startup wiring were not excerpted, so their connections are limited to documented or indexed evidence.
Main entry points: userRoutes.js User routes · App.jsx Page router · transactionApi.js Transaction operations · Dashboard.jsx Dashboard
Components 23
Frontend
- Page router
frontend/src/App.jsx - Sign in
frontend/src/pages/Signin.jsx - Sign up
frontend/src/pages/Signup.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Settings
frontend/src/pages/Settings.jsx - Send money page
frontend/src/pages/SendMoney.jsx - Friend search and transfer
frontend/src/components/Users.jsx
Backend API
- Express server
backend/index.js - User routes
backend/routes/userRoutes.js - Account routes
backend/routes/accountRoutes.js - JWT middleware
backend/middlewares/auth.js - Database connection
backend/config/db.js
Account and identity
- Authentication
backend/controllers/auth.js - User management
backend/controllers/user.js - Account operations
backend/controllers/account.js - User records
backend/models/user.js - Account balances
backend/models/account.js
Client state and transport
- Auth operations
frontend/src/services/operations/authApi.js - User operations
frontend/src/services/operations/userApi.js - Transaction operations
frontend/src/services/operations/transactionApi.js - API connector
frontend/src/services/apiConnector.js - Session state
frontend/src/store/atoms.js
Other components
- User
Connections 33
- User → Page router: uses
- Page router → Sign in: routes to
frontend/src/App.jsx - Page router → Sign up: routes to
frontend/src/App.jsx - Page router → Dashboard: routes to
frontend/src/App.jsx - Page router → Settings: routes to
frontend/src/App.jsx - Sign in → Auth operations: submits credentials
frontend/src/pages/Signin.jsx - Sign up → Auth operations: creates account
frontend/src/pages/Signup.jsx - Dashboard → Friend search and transfer: renders
frontend/src/pages/Dashboard.jsx - Dashboard → Transaction operations: loads balance
frontend/src/pages/Dashboard.jsx - Dashboard → Session state: reads
frontend/src/pages/Dashboard.jsx - Settings → User operations: updates profile
frontend/src/pages/Settings.jsx - Friend search and transfer → User operations: searches users
frontend/src/components/Users.jsx - Friend search and transfer → Transaction operations: initiates transfer
frontend/src/components/Users.jsx - Friend search and transfer → Session state: reads token
frontend/src/components/Users.jsx - Send money page → Transaction operations: uses transfers
frontend/src/services/operations/transactionApi.js - Auth operations → Session state: stores session
frontend/src/services/operations/authApi.js - User operations → API connector: calls
frontend/src/services/operations/userApi.js - Transaction operations → API connector: calls
frontend/src/services/operations/transactionApi.js - Auth operations → User routes: posts signup and signin
frontend/src/services/operations/authApi.js - User operations → User routes: requests user APIs
- Transaction operations → Account routes: requests account APIs
frontend/src/services/operations/transactionApi.js - Express server → User routes: mounts routes
backend/index.js - Express server → Account routes: mounts routes
backend/index.js - Express server → Database connection: connects database
backend/index.js - User routes → Authentication: routes signup and signin
backend/routes/userRoutes.js - User routes → User management: routes user actions
backend/routes/userRoutes.js - User routes → JWT middleware: protects user routes
backend/routes/userRoutes.js - Account routes → Account operations: routes balance and transfer
backend/routes/accountRoutes.js - Account routes → JWT middleware: protects account routes
backend/routes/accountRoutes.js - Authentication → User records: creates and finds users
backend/controllers/auth.js - Authentication → Account balances: creates and finds accounts
backend/controllers/auth.js - User management → User records: reads and updates
backend/controllers/user.js - Account operations → Account balances: reads and updates balances
backend/controllers/account.js