How pavankumarmurugan/cmpu9010-team-project-group-1 works
Main System Components
A. Frontend Layer (React.js):
• User Interface Components (/smartwardrobe-frontend/src/Components)
• State Management (Redux store)
• Asset Management
• Routing and Navigation
B. Backend Layer (Nest.js):
• API Gateway
• Authentication Service
• Core Business Logic
• Data Access Layer
• WebSocket Service (for real-time features)
C. AI/ML Services:
• Image Search Service (CLIP model)
• Natural Language Processing
• Recommendation Engine
• Virtual Try-On Service
D. Data Storage:
• PostgreSQL with pgvector
• Redis Cache
• AWS S3 (for media storage)
[Client Layer]
• ↓↑
[API Gateway / Load Balancer]
• ↓↑
[Application Services Layer]
• ↓↑
[AI/ML Services Layer]
• ↓↑
[Data Layer]
Key Interactions to Highlight
A. Authentication Flow:
• JWT-based authentication
• Refresh token mechanism
• Password reset flow
B. Product Search Flows:
• Text-based search with NLP
• Image-based search with CLIP
• Hybrid search capabilities
C. Real-time Features:
• WebSocket connections for chat
• Notification system
• Friend request handling
D. AI Processing Pipeline:
• Image vector embedding
• Text embedding
• Recommendation processing
• Virtual try-on processing
Important Architectural Patterns
• Clean Architecture (as evidenced by the backend structure)
• Repository Pattern
• CQRS Pattern (for search operations)
• Event-Driven Architecture (for real-time features)
External Services Integration
• AWS Services
• SendGrid for emails
• Firebase services
• Content Delivery Network
Specific Implementation Details
A. Search Services:
[User Query] → [Query Processor] → [Vector Embedding] → [FAISS Index] → [Results Ranking] → [Response]
B. Chat System:
[WebSocket Gateway] → [Chat Service] → [Message Queue] → [Persistence Layer]
C. Recommendation Engine:
[User Behavior] → [Feature Extraction] → [ML Model] → [Ranking System] → [Recommendations]