How namburivivek/ofoods26-ecommerce works
O Foods is a food-commerce platform whose main customer journey runs from product discovery through cart and checkout to order confirmation, with home-delivery or store-pickup choices and online payment. The frontend is a collection of HTML pages backed by an Express API in one server file. The README documents authentication, product and order management, reviews, notifications, and admin operations; several of those backend capabilities are represented by responsibilities within that monolithic file. Source excerpts are partial, so unshown implementation-level links are limited to documented relationships.
Main entry points: server.js Express API · Checkout.html Checkout · all-items.html Product browsing · price-sync.js Live price sync
Components 25
Customer shopping
- Product browsing
frontend/all-items.html - Product details
frontend/product.html - Shopping cart
frontend/cart.html - Checkout
frontend/Checkout.html - Order confirmation
frontend/conformation.html - Reviews and ratings
frontend/review.html
Accounts and preferences
- Delivery preferences
frontend/delivery-mode.js - Pickup date utilities
frontend/date-utils.js - Customer accounts
frontend/login.html - Profile and addresses
frontend/profile.html - Authentication
backend/server.js
Commerce services
- Live price sync
frontend/price-sync.js - Express API
backend/server.js - Catalog management
backend/server.js - Order management
backend/server.js - Payment processing
backend/server.js - Review service
backend/server.js
Business operations
- Admin dashboard
frontend/Admin.html - Admin authentication
frontend/Admin login.html - Shipment and pickup
backend/server.js - Order notifications
backend/server.js
Other components
- Customer
- MySQL
- Razorpay
- Email and SMS
Connections 29
- Customer → Product browsing: browses
README.md - Product browsing → Product details: opens details
README.md - Customer → Shopping cart: manages cart
README.md - Customer → Checkout: places order
README.md - Checkout → Delivery preferences: selects mode
README.md - Checkout → Pickup date utilities: schedules pickup
README.md - Checkout → Order confirmation: confirms order
README.md - Customer → Customer accounts: registers or signs in
README.md - Customer → Profile and addresses: manages profile
README.md - Customer → Reviews and ratings: writes reviews
README.md - Live price sync → Express API: fetches live prices
frontend/price-sync.js - Product browsing → Live price sync: patches prices
- Product details → Live price sync: patches prices
- Checkout → Express API: submits requests
README.md - Customer accounts → Express API: calls REST API
README.md - Profile and addresses → Express API: calls REST API
README.md - Reviews and ratings → Express API: calls REST API
README.md - Admin authentication → Admin dashboard: authenticates access
- Admin dashboard → Express API: manages business data
README.md - Express API → Authentication: handles authentication
backend/server.js - Express API → Catalog management: serves catalog
README.md - Express API → Order management: handles orders
backend/server.js - Express API → Payment processing: processes payments
README.md - Express API → Review service: supports reviews
README.md - Express API → Shipment and pickup: updates fulfillment
backend/server.js - Express API → Order notifications: sends order notices
backend/server.js - Express API → MySQL: queries data
backend/server.js - Payment processing → Razorpay: uses gateway
- Order notifications → Email and SMS: sends messages
README.md