How sumilsuthar197/shoekart works
Main Components
A. Frontend (Client Layer):
• React.js Application Structure
• Components (UI elements)
• Pages (Route-based views)
• Context (Auth state management)
• Hooks (Custom functionality)
• Utils (Route protection)
• Styles (CSS modules)
B. Backend (Server Layer):
• Express.js Server
• Routes (API endpoints)
• Controllers (Business logic)
• Models (Data schemas)
• Middleware (Auth, Error handling)
• Utils (Email service, Error handling)
C. External Services:
• MongoDB Database
• Stripe Payment Gateway
• Email Service
• RemoveBG API
[Client Tier] <-> [Server Tier] <-> [Data Tier]
Specific Component Details
Frontend Components (Top Layer):
[Public Pages] -- [Protected Pages] -- [Admin Pages]
• ↓ ↓ ↓
[Auth Context] -- [Components] -- [API Integration]
Backend Services (Middle Layer):
[Routes] → [Controllers] → [Models]
• ↑ ↑
[Auth Middleware] [Error Handlers]
External Services (Bottom Layer):
[MongoDB] [Stripe] [Email Service] [RemoveBG]
Important Flows to Highlight
A. Authentication Flow:
User → Login/Signup → JWT → Protected Routes
B. Purchase Flow:
Product Selection → Cart → Stripe Payment → Order Confirmation
C. Admin Flow:
Admin Login → Dashboard → Product/Order Management
Key Integration Points to Emphasize
• JWT Authentication between client and server
• Stripe payment processing
• Email notification system
• Image processing with RemoveBG
• Database interactions