How ran-jeet01/ecommerce works
Time2Flex is a React storefront with customer authentication, product browsing, cart checkout, order history, and administration. The principal workflow routes customers from the product catalog through cart checkout to an order, with Firebase used for identity and persisted application data. Admin pages manage products, orders, and user roles. The excerpts establish routing and several Firebase operations; unsampled page behavior is represented only where the source index or tree supports the subsystem, so some links are omitted.
Main entry points: App.jsx Application routes · firebase.js Firebase services · Products.jsx Product catalog · Cart.jsx Shopping cart
Components 22
Application routing
- Application routes
src/App.jsx
Storefront experience
- Home experience
src/pages/Home.jsx - Home showcase
src/components/Hero.jsx - Product catalog
src/pages/Products.jsx - Catalog filters
src/components/CategoryTabs.jsx - Gender filters
src/components/GenderTabs.jsx - Product grid
src/components/ProductGrid.jsx - Product card
src/components/ProductCard.jsx - Shopping cart
src/components/Cart.jsx - Order history
src/pages/Myorders.jsx
Identity and profile
- Authentication state
src/components/AuthProvider.jsx - Login
src/components/Login.jsx - Registration
src/components/Register.jsx - Protected routes
src/components/ProtectedRoute.jsx - Profile management
src/pages/UpdateProfile.jsx
Commerce administration
- Admin dashboard
src/pages/Admin/Dashboard.jsx - Product management
src/pages/Admin/ManageProducts.jsx - Order management
src/pages/Admin/ManageOrders.jsx - User management
src/pages/Admin/ManageUsers.jsx
Other components
- Customer
- Firebase services
src/firebase/firebase.js - Cloudinary uploads
Connections 33
- Customer → Application routes: uses
- Application routes → Home experience: routes
src/App.jsx - Application routes → Product catalog: routes
src/App.jsx - Application routes → Shopping cart: routes
src/App.jsx - Application routes → Login: routes
src/App.jsx - Application routes → Registration: routes
src/App.jsx - Application routes → Protected routes: protects
src/App.jsx - Application routes → Admin dashboard: routes
src/App.jsx - Application routes → Product management: routes
src/App.jsx - Application routes → Order management: routes
src/App.jsx - Application routes → User management: routes
src/App.jsx - Application routes → Profile management: routes
src/App.jsx - Application routes → Order history: routes
src/App.jsx - Home experience → Home showcase: renders
src/pages/Home.jsx - Product catalog → Catalog filters: renders
src/pages/Products.jsx - Product catalog → Gender filters: renders
src/pages/Products.jsx - Product catalog → Product grid: renders
src/pages/Products.jsx - Product grid → Product card: renders
src/components/ProductGrid.jsx - Product catalog → Firebase services: reads catalog
src/pages/Products.jsx - Product catalog → Firebase services: writes cart
src/pages/Products.jsx - Shopping cart → Firebase services: reads cart data
src/components/Cart.jsx - Shopping cart → Firebase services: creates orders
src/components/Cart.jsx - Order history → Firebase services: loads orders
src/pages/Myorders.jsx - Authentication state → Firebase services: observes identity
src/components/AuthProvider.jsx - Login → Firebase services: authenticates
src/components/Login.jsx - Registration → Firebase services: registers
src/components/Register.jsx - Protected routes → Authentication state: checks access
src/components/ProtectedRoute.jsx - Profile management → Firebase services: updates profile
src/pages/UpdateProfile.jsx - Admin dashboard → Firebase services: uses data
src/pages/Admin/Dashboard.jsx - Product management → Firebase services: manages catalog
src/pages/Admin/ManageProducts.jsx - Product management → Cloudinary uploads: uploads images
src/pages/Admin/ManageProducts.jsx - Order management → Firebase services: reads and updates
src/pages/Admin/ManageOrders.jsx - User management → Firebase services: reads and updates
src/pages/Admin/ManageUsers.jsx