How julietaruppertc/acordesmayorista works
Acordes Mayorista is a wholesale and retail musical-instrument store. A shopper browses the catalog, keeps a browser-side cart, and submits an order; the backend reserves stock, then an administrator confirms or rejects it through simulated payment, or the reservation expires. Auth and wholesale approval, operator stock adjustments, customer administration, and simulated notifications are distinct supporting capabilities. The README documents the service boundaries and purchase lifecycle; the sampled source confirms selected routing and calls, but many frontend views and backend modules were not inspected.
Main entry points: App.jsx React storefront · src/app.js Core API routing · src/app.js API gateway · database.js Business database
Components 20
Storefront
- React storefront
apps/web/src/App.jsx - Catalog browsing
apps/web/src/views/Catalog.jsx - Cart and checkout
apps/web/src/views/Checkout.jsx - Order management
apps/web/src/views/OrderManagement.jsx - Stock operations
apps/web/src/views/OperatorStock.jsx - Wholesale and users
apps/web/src/views/WholesaleManagement.jsx - Sign-in and registration
apps/web/src/hooks/useAuth.js
Gateway and identity
- API gateway
services/api-gateway/src/app.js - Authentication service
services/auth-service/src/controllers/authController.js - User records
services/auth-service/src/models/User.js
Commerce core
- Core API routing
services/core-service/src/app.js - Product catalog
services/core-service/src/modules/catalog/catalog.controller.js - Stock and reservations
services/core-service/src/modules/inventory/inventory.controller.js - Order lifecycle
services/core-service/src/modules/orders/orders.controller.js - Simulated payments
services/core-service/src/modules/payments/payments.service.js - Business database
services/core-service/src/config/database.js
Background processing
- Reservation expiry
services/core-service/src/jobs/expireReservations.js - Outbox worker
services/core-service/src/workers/outboxWorker.js - Console notification
Other components
- Shopper or staff
Connections 21
- Shopper or staff → React storefront: uses
README.md - React storefront → Catalog browsing: renders
apps/web/src/App.jsx - React storefront → Cart and checkout: routes to
apps/web/src/App.jsx - React storefront → Order management: routes to
apps/web/src/App.jsx - React storefront → Stock operations: routes to
apps/web/src/App.jsx - React storefront → Wholesale and users: routes to
apps/web/src/App.jsx - React storefront → Sign-in and registration: uses
apps/web/src/App.jsx - React storefront → API gateway: sends requests
README.md - API gateway → Authentication service: proxies auth
services/api-gateway/src/app.js - API gateway → Core API routing: proxies commerce
services/api-gateway/src/app.js - Authentication service → User records: reads and writes
services/auth-service/src/controllers/authController.js - Core API routing → Product catalog: routes products
services/core-service/src/app.js - Core API routing → Stock and reservations: routes stock
services/core-service/src/app.js - Core API routing → Order lifecycle: routes orders
services/core-service/src/app.js - Core API routing → Simulated payments: routes payments
services/core-service/src/app.js - Order lifecycle → Simulated payments: resolves via
services/core-service/src/modules/orders/orders.controller.js - Shopper or staff → User records: account data
README.md - Reservation expiry → Business database: expires reservations
README.md - Outbox worker → Business database: processes events
README.md - Outbox worker → Console notification: logs notification
README.md - Core API routing → Business database: checks readiness
services/core-service/src/app.js