How shejaoli/dopikelectronics-08-2026 works
This repository implements an online retail storefront and its administration backend. Shoppers browse and search products, manage a cart, check out, and follow orders; administrators manage catalog, orders, customers, and analytics. The React app routes storefront and admin pages, while Express routes handle API operations and delegate persistence to storage backed by PostgreSQL. Source excerpts show several server-side calls, but not the full checkout or page-to-API wiring, so those links are omitted where unverified.
Main entry points: routes.ts HTTP API Routes · App.tsx Routed Web App · storage.ts Data Operations · index.ts Express Server
Components 23
Storefront
- Routed Web App
client/src/App.tsx - Storefront Pages
client/src/pages - Product Details
client/src/pages/ProductDetails.tsx - Product Search
client/src/components/NavbarSearch.tsx - Navigation
client/src/components/Navbar.tsx
Orders and Payments
- Cart Drawer
client/src/components/CartDrawer.tsx - Checkout
client/src/pages/Checkout.tsx - Order Tracking
client/src/pages/TrackOrder.tsx - iPay Integration
server/ipay.ts
Administration
- Admin Workspace
client/src/pages
API and Persistence
- Product Catalog
server/storage.ts - HTTP API Routes
server/routes.ts - Alternate API Routes
server/routes.empty.ts - Data Operations
server/storage.ts - PostgreSQL
server/db.ts - Shared Data Schema
shared/schema.ts - Express Server
server/index.ts - Client API Queries
client/src/lib/queryClient.ts
Identity and Messaging
- Password and Access
server/auth.ts - Notifications
server/notifications.ts
Other components
- Shopper
- Administrator
- Customer
Connections 22
- Shopper → Routed Web App: uses
- Administrator → Routed Web App: uses
- Routed Web App → Storefront Pages: routes to
client/src/App.tsx - Routed Web App → Product Details: routes to
client/src/App.tsx - Navigation → Product Search: renders
client/src/components/Navbar.tsx - Product Search → Product Catalog: requests suggestions
client/src/components/NavbarSearch.tsx - Routed Web App → Admin Workspace: routes to
- Customer → Routed Web App: uses
- HTTP API Routes → Data Operations: delegates data operations
server/routes.ts - Alternate API Routes → Data Operations: delegates data operations
server/routes.empty.ts - Data Operations → PostgreSQL: queries
server/storage.ts - Data Operations → Shared Data Schema: uses table definitions
server/storage.ts - HTTP API Routes → Password and Access: checks credentials
server/routes.ts - Password and Access → Data Operations: looks up admins
server/auth.ts - HTTP API Routes → Notifications: notifies new customers
server/routes.ts - HTTP API Routes → iPay Integration: initiates and checks payments
server/routes.ts - Express Server → HTTP API Routes: registers routes
server/index.ts - Express Server → Client API Queries: serves API requests
- Cart Drawer → Checkout: continues to checkout
- Checkout → HTTP API Routes: submits order
- Order Tracking → HTTP API Routes: requests order status
- Admin Workspace → HTTP API Routes: manages retail data