How ayobamiseun/fullstack-fintech-wallet works
Cash Transactions App is a React wallet client backed by an Express API, with Sequelize/PostgreSQL persistence. The main user workflow is login or registration, then viewing an account and initiating a transfer; the backend routes requests through controllers and services to account, transaction, and user models. The README also describes broader wallet, compliance, security, admin, and integration capabilities that are not represented in the supplied tree, so those branches are shown as documented but implementation details are unverified. Edges use excerpts or README statements as evidence.
Main entry points: app.ts Express application · services User and wallet services · App.tsx React app routes · Login.tsx Login and registration
Components 24
Wallet client
- React app routes
frontend-serve/src/App.tsx - Login and registration
frontend-serve/src/Pages/Login.tsx - Account and transfers UI
frontend-serve/src/Pages/Account.tsx - Balance and transfer header
frontend-serve/src/components/Header.tsx - API request client
frontend-serve/src/services/apiRequests.ts - Session storage
frontend-serve/src/services/localStorage.ts - HTTP fetch wrapper
frontend-serve/src/utils/fetchWrapper.ts
API and security
- Express application
backend/src/app.ts - API routes
backend/src/routes - Request controllers
backend/src/controllers - JWT service
backend/src/services/jwtService.ts - Authentication middleware
backend/src/middlewares/authMiddleware.ts - Error handling
backend/src/middlewares/errorHandler.ts
Wallet domain
- User and wallet services
backend/src/services - Domain interfaces
backend/src/interfaces - Wallet extensions
backend/src - KYC and account security
backend/src - Admin and audit tools
backend/src
Persistence and integrations
- Account model
backend/src/database/models/Account.ts - User model
backend/src/database/models/User.ts - Transaction model
backend/src/database/models/Transaction.ts - PostgreSQL database
- Email and webhooks
backend/src/services
Other components
- Wallet user
Connections 28
- Wallet user → React app routes: uses
frontend-serve/src/App.tsx - React app routes → Login and registration: routes to
frontend-serve/src/App.tsx - React app routes → Account and transfers UI: routes to
frontend-serve/src/App.tsx - Login and registration → API request client: requests login
frontend-serve/src/Pages/Login.tsx - Login and registration → Session storage: saves session
frontend-serve/src/Pages/Login.tsx - Account and transfers UI → Balance and transfer header: renders
frontend-serve/src/Pages/Account.tsx - Balance and transfer header → Session storage: reads session
frontend-serve/src/components/Header.tsx - Balance and transfer header → API request client: requests balance and transfer
frontend-serve/src/components/Header.tsx - API request client → HTTP fetch wrapper: delegates requests
frontend-serve/src/services/apiRequests.ts - HTTP fetch wrapper → Express application: sends HTTP
- Express application → API routes: mounts
backend/src/app.ts - API routes → Request controllers: dispatches
backend/src/routes/main.ts - Request controllers → User and wallet services: calls
backend/src/controllers/Account.ts - User and wallet services → Account model: reads and writes
backend/src/services/Account.ts - User and wallet services → Transaction model: uses transactions
backend/src/services/Transactions.ts - User and wallet services → User model: uses users
backend/src/services/User.ts - User model → Account model: references account
backend/src/database/models/User.ts - Account model → PostgreSQL database: persists
backend/src/database/models/Account.ts - Transaction model → PostgreSQL database: persists
backend/src/database/models/Transaction.ts - User and wallet services → JWT service: creates and validates tokens
backend/src/services/User.ts - Authentication middleware → JWT service: validates tokens
backend/src/middlewares/authMiddleware.ts - Express application → Error handling: handles errors
backend/src/app.ts - Express application → Wallet extensions: offers documented endpoints
README.md - Express application → KYC and account security: offers documented flows
README.md - Express application → Admin and audit tools: offers documented endpoints
README.md - User and wallet services → Email and webhooks: sends reset email
backend/src/controllers/User.ts - Express application → Email and webhooks: supports documented webhooks
README.md - Domain interfaces → User and wallet services: types domain data
backend/src/services/jwtService.ts