How patelyash7/money-mingle-client works
Main System Components
A. Frontend Layer:
• Next.js Application (React-based)
• Into three main sections:
• Public/Landing Pages
• Authentication Pages (/(auth) route)
• Dashboard Pages (/(dashboard) route)
• Banking Pages (/(bank) route)
B. Backend Layer:
• API Routes (/api directory)
• Authentication System (NextAuth.js)
• Database Layer (Prisma ORM)
• Email Service Integration (indicated by sendEmail.ts)
C. External Services:
• Banking Integration System
• Email Service Provider
• Database (likely PostgreSQL based on Prisma usage)
Component Organization
A. Client-Side Components:
• Landing Components
• Authentication Components
• Dashboard Components
• Wallet Management
• Bank Transfers
• Transaction History
• UI Components Layer
B. Server-Side Components:
• API Routes
• Authentication Services
• Transaction Services
• Bank Integration Services
• Database Services
Key Interactions to Highlight
• Authentication Flow
• Transaction Flow
• Bank Account Verification Flow
• Wallet Operations Flow
Specific Implementation Details
Frontend:
• User Authentication (SignIn/SignUp)
• Bank Account Management
• Wallet Operations
• Transaction History
• Profile Management
Backend:
• API Routes
• Authentication Middleware
• Database Operations
• External Service Integrations
Data Flow Patterns
• User Authentication Flow
• Bank Transaction Flow
• Wallet Transaction Flow
• P2P Transfer Flow
Security Layer
Security components:
• Authentication Middleware
• PIN Verification
• Token Management
• Password Management
State Management
Stores from the /store directory:
• User State
• Payment User State
• Transaction State
• Top Friends State