How sieunhangao889/eshop-sut works
EShop is a multi-client commerce system: shoppers browse products, manage a cart, authenticate, and place orders; users can also manage profiles and review order history. The backend serves the web, admin, and mobile clients and persists commerce data in SQLite. The admin client manages catalog, coupons, users, and order status. The README documents additional requirements, but sampled implementation excerpts are partial; unsampled feature wiring is shown only where the tree or documentation supports it.
Main entry points: server.js Express API · App.jsx Web app · database.js SQLite database · AuthContext.jsx Web authentication
Components 17
Shopper experiences
- Web app
frontend-web/src/App.jsx - Web authentication
frontend-web/src/context/AuthContext.jsx - Product browsing
frontend-web/src/pages/Home.jsx - Product detail
frontend-web/src/pages/ProductDetail.jsx - Shopping cart
frontend-web/src/context/CartContext.jsx - Checkout
frontend-web/src/pages/Checkout.jsx - Profile and orders
frontend-web/src/pages/Profile.jsx - Mobile app
frontend-mobile/App.js
Admin operations
- Admin console
frontend-admin/src/App.jsx
Commerce API
- Express API
backend/server.js - Accounts and access
backend/server.js - Catalog management
backend/server.js - Orders and status
backend/server.js - Coupon handling
backend/server.js
Persistent data
- SQLite database
backend/database.js
Other components
- Shopper
- Administrator
Connections 24
- Shopper → Web app: uses
- Shopper → Mobile app: uses
- Web app → Web authentication: provides auth
- Web app → Product browsing: routes to
- Web app → Product detail: routes to
- Web app → Shopping cart: provides cart
- Web app → Checkout: routes to
- Web app → Profile and orders: routes to
- Web authentication → Express API: requests account
- Product browsing → Express API: fetches products
- Product detail → Express API: fetches product
- Checkout → Express API: submits order
- Profile and orders → Express API: updates and reads
- Mobile app → Express API: requests commerce
- Administrator → Admin console: uses
- Admin console → Express API: manages commerce
- Express API → Accounts and access: dispatches
- Express API → Catalog management: dispatches
- Express API → Orders and status: dispatches
- Express API → Coupon handling: dispatches
- Accounts and access → SQLite database: reads and writes
- Catalog management → SQLite database: reads and writes
- Orders and status → SQLite database: reads and writes
- Coupon handling → SQLite database: reads and writes