How jaiganesh2108/shoply-ai works
Shoply is an AI-assisted commerce application: shoppers browse products or describe a need to the assistant, then use account, cart, order, and payment screens. The shown frontend routes these experiences through App; the assistant sends chat messages through its API helper. Django backend apps cover products, users, carts, orders, payments, and AI. Most page-to-API and backend route wiring was not sampled, so those connections are omitted or marked unverified rather than asserted as observed.
Main entry points: App.jsx Route app · Home.jsx Home and catalog · cart/views.py Cart endpoints · products/views.py Product endpoints
Components 25
Web experience
- Route app
frontend/src/App.jsx - Navigation
frontend/src/components/Navbar/Navbar.jsx - Home and catalog
frontend/src/pages/Home.jsx - Product browsing
frontend/src/pages/Products.jsx - Product detail
frontend/src/pages/ProductDetail.jsx - Login
frontend/src/pages/Login.jsx - Signup
frontend/src/pages/Signup.jsx - Profile
frontend/src/pages/Profile.jsx - Cart screen
frontend/src/pages/Cart.jsx - Orders screen
frontend/src/pages/Orders.jsx - Payment screen
frontend/src/pages/Payment.jsx - Token handling
frontend/src/api/authUtils.js - Crowd canvas
frontend/src/components/ui/crowd-canvas.jsx
Shopping assistant
- Chat interface
frontend/src/components/AssistantChat/AssistantChat.jsx - Assistant API
frontend/src/api/ai.js - AI endpoints
backend/ai/views.py
Commerce backend
- Product endpoints
backend/products/views.py - Product model
backend/products/models.py - Cart endpoints
backend/cart/views.py - Cart model
backend/cart/models.py - Cart serializer
backend/cart/serializers.py - Order domain
backend/orders/views.py - Payment domain
backend/payments/views.py
Identity backend
- User domain
backend/users/views.py
Other components
- Shopper
Connections 27
- Shopper → Route app: uses
- Route app → Navigation: renders
frontend/src/App.jsx - Route app → Home and catalog: routes
frontend/src/App.jsx - Route app → Product browsing: routes
frontend/src/App.jsx - Route app → Product detail: routes
frontend/src/App.jsx - Route app → Login: routes
frontend/src/App.jsx - Route app → Signup: routes
frontend/src/App.jsx - Route app → Profile: routes
frontend/src/App.jsx - Route app → Cart screen: routes
frontend/src/App.jsx - Route app → Orders screen: routes
frontend/src/App.jsx - Route app → Payment screen: routes
frontend/src/App.jsx - Route app → Token handling: checks expiry
frontend/src/App.jsx - Home and catalog → Chat interface: renders
frontend/src/pages/Home.jsx - Home and catalog → Crowd canvas: renders
frontend/src/pages/Home.jsx - Chat interface → Assistant API: sends messages
frontend/src/components/AssistantChat/AssistantChat.jsx - Assistant API → AI endpoints: requests
- Product browsing → Product endpoints: requests
- Product detail → Product endpoints: requests
- Cart screen → Cart endpoints: requests
- Orders screen → Order domain: requests
- Payment screen → Payment domain: requests
- Login → User domain: requests
- Signup → User domain: requests
- Profile → User domain: requests
- Product endpoints → Product model: queries
backend/products/views.py - Cart endpoints → Cart model: queries
backend/cart/views.py - Cart endpoints → Cart serializer: serializes
backend/cart/views.py