How mrsethzintwoaccoundrealnofakeonthemix/final-year_capstone-project works
Luxe Jewelry is an accountless social-commerce platform for browsing a jewelry catalog, verifying Messenger-linked customer identity, placing orders, and paying by COD or Bakong KHQR. Its runtime spans customer and owner webviews, Express APIs, order and inventory coordination, SQLite persistence, and Messenger/Telegram integrations. The README documents major capabilities not fully visible in the sampled source; those are represented where paths are supported, with only documented or indexed relationships shown.
Main entry points: order.service.js Order coordinator · admin.controller.js Admin operations · customer.controller.js Customer endpoints · index.js SQLite database
Components 24
Storefront & Admin
- Customer webview
public/js/webview.js - Admin dashboard
public/js/admin.js
HTTP API
- Express app
src/app.js - Customer endpoints
src/controllers/customer.controller.js - Admin operations
src/controllers/admin.controller.js - Messenger webhook
src/controllers/webhook.controller.js - Customer routes
src/routes/customer.routes.js - Admin routes
src/routes/admin.routes.js - Webhook routes
src/routes/webhook.routes.js
Commerce Services
- Order coordinator
src/services/order.service.js - Signed identity
src/services/identity.service.js - Admin authentication
src/services/auth.service.js - Image processing
src/services/image.service.js
Catalog & Persistence
- Product catalog
src/repositories/product.repository.js - Product variants
src/repositories/variant.repository.js - Categories
src/repositories/category.repository.js - POS sales
src/repositories/pos.repository.js - Orders & lifecycle
src/repositories/order.repository.js - SQLite database
src/db/index.js
Messaging & Payments
- Messenger integration
src/services/messenger.service.js - Telegram owner tools
src/services/telegram.service.js - Bakong KHQR
src/services/bakong.service.js
Other components
- Customer
- Store owner
Connections 40
- Customer → Customer webview: uses
- Store owner → Admin dashboard: manages
- Customer webview → Customer routes: requests
- Admin dashboard → Admin routes: requests
- Express app → Customer routes: mounts
- Express app → Admin routes: mounts
- Express app → Webhook routes: mounts
- Customer routes → Customer endpoints: routes to
src/routes/customer.routes.js - Admin routes → Admin operations: routes to
src/routes/admin.routes.js - Webhook routes → Messenger webhook: routes to
src/routes/webhook.routes.js - Customer endpoints → Product catalog: reads catalog
src/controllers/customer.controller.js - Customer endpoints → Signed identity: verifies identity
src/controllers/customer.controller.js - Customer endpoints → Order coordinator: places order
src/controllers/customer.controller.js - Customer endpoints → Orders & lifecycle: reads order
src/controllers/customer.controller.js - Customer endpoints → Bakong KHQR: requests payment
src/controllers/customer.controller.js - Admin operations → Admin authentication: authenticates
src/controllers/admin.controller.js - Admin operations → Product catalog: manages catalog
src/controllers/admin.controller.js - Admin operations → Categories: manages categories
src/controllers/admin.controller.js - Admin operations → Product variants: manages variants
src/controllers/admin.controller.js - Admin operations → POS sales: records sales
src/controllers/admin.controller.js - Admin operations → Order coordinator: updates orders
src/controllers/admin.controller.js - Admin operations → Image processing: processes images
src/controllers/admin.controller.js - Messenger webhook → Signed identity: signs customer links
src/controllers/webhook.controller.js - Messenger webhook → Messenger integration: sends replies
src/controllers/webhook.controller.js - Order coordinator → Orders & lifecycle: persists lifecycle
src/services/order.service.js - Order coordinator → Product catalog: checks products
src/services/order.service.js - Order coordinator → Product variants: checks variants
src/services/order.service.js - Order coordinator → Signed identity: validates customer
src/services/order.service.js - Order coordinator → Messenger integration: sends receipts
src/services/order.service.js - Order coordinator → Telegram owner tools: alerts owner
src/services/order.service.js - Order coordinator → Bakong KHQR: coordinates payment
src/services/order.service.js - Product catalog → SQLite database: queries
src/repositories/product.repository.js - Product variants → SQLite database: queries
src/repositories/variant.repository.js - Orders & lifecycle → SQLite database: queries transactions
src/repositories/order.repository.js - Categories → SQLite database: queries
src/repositories/category.repository.js - POS sales → SQLite database: queries
src/repositories/pos.repository.js - Telegram owner tools → Order coordinator: dispatches owner actions
src/services/telegram.service.js - Telegram owner tools → Store owner: alerts and controls
- Messenger integration → Customer: sends commerce messages
- Bakong KHQR → Customer: provides KHQR payment