How jayanthvarma2122/ai_fashion_assisstant works
AURA is a personal fashion-styling and capsule-wardrobe application. Users authenticate, manage fit preferences and clothing, then request occasion- and weather-aware outfit recommendations; they can save and rate looks, analyze wardrobe gaps, plan trip packing, and build a shopping wishlist. The React client calls an Express API, whose domain controllers use a shared data layer and Gemini-backed generation with documented rule-based fallback. Frontend call sites and several domain implementations were not sampled, so those links are included only where the source index or README supports them.
Main entry points: axiosClient.js API client · db.js Data store · ai.controller.js AI styling and analysis · server.js Express API
Components 24
Web client
- App routing
frontend/src/App.jsx - Auth state
frontend/src/context/AuthContext.jsx - API client
frontend/src/api/axiosClient.js - Styling consultation
frontend/src/pages/Stylist.jsx - Saved looks
frontend/src/pages/SavedLooks.jsx - Wardrobe manager
frontend/src/pages/Wardrobe.jsx - Packing lists
frontend/src/pages/PackingLists.jsx - Style preferences
frontend/src/pages/Preferences.jsx - Stylist chat
frontend/src/components/AIChatWidget.jsx
Identity and profile
- Auth endpoints
backend/src/routes/auth.routes.js - Registration and login
backend/src/controllers/auth.controller.js - Style profile
backend/src/controllers/profile.controller.js
Wardrobe and styling
- Wardrobe endpoints
backend/src/routes/wardrobe.routes.js - Wardrobe records
backend/src/controllers/wardrobe.controller.js - AI endpoints
backend/src/routes/ai.routes.js - AI styling and analysis
backend/src/controllers/ai.controller.js - Gemini generation
backend/src/config/gemini.js - Outfit feedback
backend/src/controllers/outfit.controller.js
Planning and shopping
- Trip packing
backend/src/controllers/packing.controller.js - Shopping gaps
backend/src/controllers/wishlist.controller.js
API and services
- Data store
backend/src/config/db.js - Express API
backend/src/server.js
Other components
- User
- Google Gemini
Connections 29
- User → App routing: uses
frontend/src/App.jsx - App routing → Auth state: reads session
frontend/src/App.jsx - Auth state → API client: verifies session
frontend/src/context/AuthContext.jsx - Styling consultation → API client: requests styling
frontend/src/pages/Stylist.jsx - Saved looks → API client: manages looks
frontend/src/pages/SavedLooks.jsx - Wardrobe manager → API client: manages items
frontend/src/pages/Wardrobe.jsx - Packing lists → API client: requests packing
frontend/src/pages/PackingLists.jsx - Style preferences → API client: updates profile
frontend/src/pages/Preferences.jsx - Stylist chat → API client: sends chat
frontend/src/components/AIChatWidget.jsx - API client → Express API: calls API
README.md - Express API → Auth endpoints: mounts routes
backend/src/server.js - Express API → Wardrobe endpoints: mounts routes
backend/src/server.js - Express API → AI endpoints: mounts routes
backend/src/server.js - Express API → Data store: initializes
backend/src/server.js - Auth endpoints → Registration and login: dispatches
backend/src/routes/auth.routes.js - Wardrobe endpoints → Wardrobe records: dispatches
backend/src/routes/wardrobe.routes.js - AI endpoints → AI styling and analysis: dispatches
backend/src/routes/ai.routes.js - Registration and login → Data store: reads and writes
backend/src/controllers/auth.controller.js - Style profile → Data store: reads and writes
- Wardrobe records → Data store: reads and writes
backend/src/controllers/wardrobe.controller.js - AI styling and analysis → Data store: loads wardrobe
backend/src/controllers/ai.controller.js - AI styling and analysis → Gemini generation: generates responses
backend/src/controllers/ai.controller.js - AI styling and analysis → Outfit feedback: persists recommendations
- AI styling and analysis → Trip packing: creates trip plans
- AI styling and analysis → Shopping gaps: generates gaps
- Gemini generation → Google Gemini: requests generation
README.md - Outfit feedback → Data store: reads and writes
backend/src/controllers/outfit.controller.js - Trip packing → Data store: reads and writes
- Shopping gaps → Data store: reads and writes
backend/src/controllers/wishlist.controller.js