How donyamousa/frameit-ar-eyeweartryon works
FrameIt is an eyewear commerce platform with an AR try-on experience. The customer journey spans catalog browsing, product selection, virtual try-on, cart, checkout, and order history; the admin journey manages products, 3D assets, images, and orders. The graph also shows the API routing and persistence layer. The repository contains both backend and legacy backEnd servers; sampled evidence supports their separate route surfaces, but does not establish that they are one runtime. AR helper wiring and several page-to-API calls were not sampled, so those links are marked unverified or omitted.
Main entry points: App.jsx Route application · adminRoutes.js Admin routes · server.js FrameIt API · TryOn.jsx AR try-on
Components 34
Customer experience
- Route application
client/src/App.jsx - Browse catalog
client/src/pages/Shop.jsx - Product details
client/src/pages/ProductDetail.jsx - Cart
client/src/pages/Cart.jsx - Checkout
client/src/pages/Checkout.jsx - Order history
client/src/pages/Orders.jsx - Account access
client/src/pages/SignIn.jsx
Virtual try-on
- AR try-on
client/src/pages/TryOn.jsx - Face and render helpers
backend/src/public/helpers - Three.js runtime
backend/src/public/libs/three/v112/three.js - GLTF loader
backend/src/public/libs/three/v112/GLTFLoader.js
Commerce API
- FrameIt API
backend/src/server.js - Authentication routes
backend/src/routes/authRoutes.js - Authentication
backend/src/controllers/authController.js - Order routes
backend/src/routes/orderRoutes.js - Order handling
backend/src/controllers/orderController.js - Legacy catalog and user API
backEnd/server.js - Legacy product handlers
backEnd/controllers/productController.js - Legacy user handlers
backEnd/controllers/userController.js
Admin operations
- Admin workspace
client/src/pages/AdminDashboard.jsx - Add eyewear
client/src/pages/AddGlasses.jsx - Product images
client/src/pages/UpdateProductImages.jsx - Admin routes
backend/src/routes/adminRoutes.js - Product management
backend/src/controllers/adminController.js - Upload handling
backend/src/middleware/upload.js - GLTF processing
backend/src/utils/processGLTFModel.js
Persistence and assets
- Blender geometry export
backend/libs/three/blenderExporter/io_three/exporter/geometry.py - Product records
backend/src/models/Product.js - 3D model records
backend/src/models/GlassesModel.js - User records
backend/src/models/User.js - Admin records
backend/src/models/Admin.js - Order records
backend/src/models/Order.js - Legacy products
backEnd/models/Product.js
Other components
- Shopper
Connections 33
- Shopper → Route application: uses
- Route application → Browse catalog: routes to
client/src/App.jsx - Route application → Product details: routes to
client/src/App.jsx - Route application → AR try-on: routes to
client/src/App.jsx - Route application → Cart: routes to
client/src/App.jsx - Route application → Checkout: routes to
client/src/App.jsx - Route application → Order history: routes to
client/src/App.jsx - Route application → Account access: routes to
client/src/App.jsx - AR try-on → Face and render helpers: uses
- AR try-on → Three.js runtime: renders with
- AR try-on → GLTF loader: loads models
- FrameIt API → Authentication routes: mounts
backend/src/server.js - FrameIt API → Order routes: mounts
backend/src/server.js - FrameIt API → Admin routes: mounts
backend/src/server.js - Authentication routes → Authentication: dispatches
backend/src/routes/authRoutes.js - Authentication → User records: reads and writes
backend/src/controllers/authController.js - Authentication → Admin records: reads and writes
backend/src/controllers/authController.js - Order routes → Order handling: dispatches
backend/src/routes/orderRoutes.js - Order handling → Order records: reads and writes
backend/src/controllers/orderController.js - Order handling → Product records: reads
backend/src/controllers/orderController.js - FrameIt API → Product records: serves catalog
backend/src/server.js - FrameIt API → 3D model records: serves models
backend/src/server.js - Admin workspace → Admin routes: manages via API
- Add eyewear → Admin routes: uploads via API
- Product images → Admin routes: updates via API
- Admin routes → Product management: dispatches
backend/src/routes/adminRoutes.js - Admin routes → Upload handling: configures
backend/src/routes/adminRoutes.js - Product management → GLTF processing: processes GLTF
backend/src/controllers/adminController.js - Product management → Product records: reads and writes
backend/src/controllers/adminController.js - Product management → 3D model records: writes
backend/src/controllers/adminController.js - Legacy catalog and user API → Legacy product handlers: routes catalog
backEnd/server.js - Legacy catalog and user API → Legacy user handlers: routes accounts
backEnd/server.js - Legacy product handlers → Legacy products: reads and writes
backEnd/controllers/productController.js