How taymourlankfarawilla/fi_byti works
Fi Byti is a full-stack marketplace connecting buyers with Egyptian artisan sellers. The main journey is browsing a catalog, building a multi-seller cart, checking out with shipping and payment choices, and tracking orders; sellers manage listings and fulfillment while administrators review sellers and oversee the platform. The graph includes the documented commission, notifications, backups, and localization capabilities. Some frontend-to-backend connections are dashed because the relevant page excerpts were not provided.
Main entry points: App.jsx Web application · db.js Marketplace data store · server.js HTTP API server · sellerRoutes.js Seller management
Components 25
Buyer storefront
- Web application
frontend/src/App.jsx - Product catalog
frontend/src/pages/CatalogPage.jsx - Product details
frontend/src/pages/ProductDetailPage.jsx - Multi-seller cart
frontend/src/context/CartContext.jsx - Checkout UI
frontend/src/pages/CheckoutPage.jsx - Buyer orders
frontend/src/pages/BuyerOrdersPage.jsx - Account state
frontend/src/context/AuthContext.jsx - Arabic and RTL
frontend/src/context/LanguageContext.jsx - Translation strings
frontend/src/i18n/strings.js - Theme state
frontend/src/context/ThemeContext.jsx
Identity and catalog
- HTTP API server
backend/src/server.js - Account routes
backend/src/routes/authRoutes.js - Token and role checks
backend/src/middleware/authMiddleware.js - Product routes
backend/src/routes/productRoutes.js - Seller management
backend/src/routes/sellerRoutes.js - Document and image uploads
backend/src/middleware/uploadMiddleware.js
Orders and fulfillment
- Checkout and orders
backend/src/routes/checkoutRoutes.js - Marketplace data store
backend/src/db/db.js - WhatsApp notifications
backend/src/services/whatsappService.js
Marketplace operations
- Admin controls
backend/src/routes/adminRoutes.js - Database backups
backend/src/services/backupService.js - Seller dashboard
frontend/src/pages/seller/SellerDashboard.jsx - Admin dashboard
frontend/src/pages/admin/AdminDashboard.jsx - Demo API behavior
frontend/src/services/clientApiMock.js
Other components
- Buyer
Connections 42
- Buyer → Web application: uses
frontend/src/App.jsx - Web application → Product catalog: routes to
frontend/src/App.jsx - Web application → Product details: routes to
frontend/src/App.jsx - Web application → Checkout UI: routes to
frontend/src/App.jsx - Web application → Buyer orders: routes to
frontend/src/App.jsx - Web application → Seller dashboard: routes to
frontend/src/App.jsx - Web application → Admin dashboard: routes to
frontend/src/App.jsx - Web application → Account state: provides state
frontend/src/App.jsx - Web application → Multi-seller cart: provides state
frontend/src/App.jsx - Web application → Arabic and RTL: provides state
frontend/src/App.jsx - Web application → Theme state: provides state
frontend/src/App.jsx - Arabic and RTL → Translation strings: looks up
frontend/src/context/LanguageContext.jsx - Product catalog → Multi-seller cart: adds products
frontend/src/pages/CatalogPage.jsx - Product details → Multi-seller cart: adds products
frontend/src/pages/ProductDetailPage.jsx - Checkout UI → Multi-seller cart: reads cart
frontend/src/pages/CheckoutPage.jsx - Account state → Account routes: requests login
frontend/src/context/AuthContext.jsx - Account state → Account routes: refreshes session
frontend/src/context/AuthContext.jsx - HTTP API server → Account routes: mounts
backend/src/server.js - HTTP API server → Seller management: mounts
backend/src/server.js - HTTP API server → Admin controls: mounts
backend/src/server.js - HTTP API server → Product routes: mounts
backend/src/server.js - HTTP API server → Checkout and orders: mounts
backend/src/server.js - Account routes → Marketplace data store: reads and writes
backend/src/routes/authRoutes.js - Token and role checks → Marketplace data store: loads user
backend/src/middleware/authMiddleware.js - Account routes → Token and role checks: uses token check
backend/src/routes/authRoutes.js - Seller management → Token and role checks: checks roles
backend/src/routes/sellerRoutes.js - Seller management → Document and image uploads: accepts uploads
backend/src/routes/sellerRoutes.js - Seller management → Marketplace data store: reads and writes
backend/src/routes/sellerRoutes.js - Product routes → Marketplace data store: reads catalog
backend/src/routes/productRoutes.js - Checkout and orders → Marketplace data store: validates and records
backend/src/routes/checkoutRoutes.js - Checkout and orders → WhatsApp notifications: requests notification
backend/src/routes/checkoutRoutes.js - Seller management → WhatsApp notifications: requests status update
backend/src/routes/sellerRoutes.js - WhatsApp notifications → Marketplace data store: records audit log
backend/src/services/whatsappService.js - Admin controls → Marketplace data store: manages marketplace
backend/src/routes/adminRoutes.js - Admin controls → Document and image uploads: serves verification docs
backend/src/routes/adminRoutes.js - Admin controls → Database backups: requests snapshot
backend/src/routes/adminRoutes.js - Database backups → Marketplace data store: backs up data
backend/src/services/backupService.js - Checkout UI → Checkout and orders: submits order
- Buyer orders → Checkout and orders: requests order history
- Seller dashboard → Seller management: uses seller API
- Admin dashboard → Admin controls: uses admin API
- Demo API behavior → HTTP API server: may simulate requests