How tpavans/ld-interiors-ai works
LD Interiors is a custom-furniture showroom and ordering application. Customers browse and rate designs, submit orders, pay and track progress; administrators manage catalog entries and orders. The README also describes the conversational assistant, support, and affiliate catalog. The sampled files confirm core API routing, order/payment behavior, and assistant product/order lookups; unsampled implementations are represented only where README/tree evidence supports them.
Main entry points: server.js Express API · api.js API client · orderController.js Order and payment logic · productController.js Catalog operations
Components 33
Customer showroom
- Showroom pages
frontend/src/app/page.js - Product catalog
frontend/src/app/products/page.js - Product details
frontend/src/app/products/[id]/page.js - Catalog routes
backend/routes/productRoutes.js - Catalog operations
backend/controllers/productController.js - Category routes
backend/routes/categoryRoutes.js
Orders and payments
- Order tracking
frontend/src/app/orders/page.js - Order routes
backend/routes/orderRoutes.js - Order and payment logic
backend/controllers/orderController.js - PhonePe payments
backend/controllers/phonepeController.js
Admin and support
- Admin dashboard
frontend/src/components/AdminDashboardComponent.js - Support form
frontend/src/app/support/page.js - Authentication routes
backend/routes/authRoutes.js - Authentication
backend/controllers/authController.js - Support requests
backend/routes/supportRoutes.js - Analytics routes
backend/routes/analyticsRoutes.js - Email notifications
backend/utils/sendEmail.js - Customer voice calls
backend/utils/voiceCall.js
API and data
- API client
frontend/src/utils/api.js - Express API
backend/server.js - Product records
backend/models/Product.js - Order records
backend/models/Order.js - Support records
backend/models/SupportRequest.js - Affiliate records
backend/models/AmazonProduct.js - Cloudinary storage
backend/config/cloudinary.js
Assistant and affiliate
- LD Assistant
frontend/src/components/ClientWrapper.js - Affiliate endpoint
frontend/src/app/api/amazon/route.js - Affiliate routes
backend/routes/amazonRoutes.js - Affiliate catalog
backend/controllers/amazonController.js
Other components
- Customer
- MongoDB
- Cloudinary
- Payment gateways
Connections 43
- Customer → Showroom pages: browses
- Customer → Product catalog: explores designs
- Customer → Product details: views design
- Customer → Order tracking: tracks order
- Customer → Support form: requests help
- Showroom pages → Product catalog: links to
- Product catalog → API client: requests products
- Product details → API client: loads and rates
- Order tracking → API client: requests tracking
- Support form → API client: submits ticket
- Admin dashboard → API client: manages data
- LD Assistant → API client: searches and tracks
- API client → Express API: sends API requests
- Express API → Catalog routes: dispatches
- Express API → Order routes: dispatches
- Express API → Authentication routes: dispatches
- Express API → Support requests: dispatches
- Express API → Affiliate routes: dispatches
- Express API → Category routes: dispatches
- Express API → Analytics routes: dispatches
- Catalog routes → Catalog operations: invokes
- Catalog operations → Product records: reads and writes
- Catalog operations → Cloudinary storage: uploads and deletes
- Cloudinary storage → Cloudinary: stores images
- Catalog operations → MongoDB: persists products
- Order routes → Order and payment logic: invokes
- Order and payment logic → Order records: reads and updates
- Order and payment logic → Cloudinary storage: manages reference images
- Order and payment logic → Email notifications: sends notices
- Order and payment logic → Customer voice calls: triggers calls
- Order and payment logic → Payment gateways: creates and verifies payments
- Express API → PhonePe payments: dispatches
- PhonePe payments → Order records: updates payments
- PhonePe payments → Payment gateways: initiates and checks
- Authentication routes → Authentication: invokes
- Authentication → MongoDB: reads and updates users
- Support requests → Support records: creates and reads
- Support requests → Email notifications: sends alert
- Affiliate endpoint → Affiliate routes: proxies requests
- Affiliate routes → Affiliate catalog: invokes
- Affiliate catalog → Affiliate records: reads and writes
- LD Assistant → Catalog routes: loads search catalog
- LD Assistant → Order routes: tracks by phone