How mukeshkumar9787/dams works
DAMS is a full-stack commerce application: customers browse a catalog, manage carts and wishlists, authenticate, and place and track orders; administrators manage catalog data, orders, users, configuration, and audit activity. The graph connects the Next.js experience to the Express API, then shows the API’s routing, service, and persistence layers, plus documented payment, email, and object-storage integrations. Several backend domains are represented by their exact tree paths but were not sampled, so their internal call relationships are not inferred.
Main entry points: apiCalls.js API client · index.js API routes · client.js PostgreSQL · auth.js Authentication
Components 24
Storefront
- Browse catalog
web_client/src/components/ShopWithSidebar/index.tsx - Product details
web_client/src/components/ShopDetails/index.tsx - Cart and wishlist
web_client/src/components/Cart/index.tsx - Checkout
web_client/src/components/Checkout/index.tsx - Account and orders
web_client/src/components/MyAccount/index.tsx
Identity
- Sign-in and signup
web_client/src/components/Auth/Signin/index.tsx - Auth controller
server/controllers/auth.js - Authentication
server/services/auth.js
Commerce API
- Catalog services
server/services/products.js - Cart and orders
server/services/orders.js - Payment service
server/services/payment.js
Administration
- Admin console
web_client/src/components/AdminDesktopShell/index.tsx - Admin domains
server/services/dashboard.js - Audit logging
server/middlewares/auditLogMiddleware.js
Platform
- API client
web_client/src/http/apiCalls.js - Express API
server/index.js - API routes
server/routes/index.js - File management
server/services/files.js - PostgreSQL
server/prisma/client.js
Other components
- Customer
- Razorpay
- SMTP email
- R2 storage
- Google sign-in
Connections 30
- Customer → Browse catalog: browses
README.md - Browse catalog → API client: requests catalog
README.md - Product details → API client: loads product
README.md - Cart and wishlist → API client: syncs cart
README.md - Customer → Sign-in and signup: signs in
README.md - Sign-in and signup → API client: submits credentials
README.md - Customer → Checkout: checks out
README.md - Checkout → API client: places order
README.md - Customer → Account and orders: views history
README.md - Account and orders → API client: requests orders
README.md - Admin console → API client: manages records
README.md - API client → Express API: calls API
README.md - Express API → API routes: mounts routes
server/index.js - API routes → Auth controller: routes auth
- Auth controller → Authentication: delegates auth
server/controllers/auth.js - API routes → Audit logging: applies logging
server/routes/index.js - API routes → Catalog services: routes catalog
server/routes/index.js - API routes → Cart and orders: routes orders
- API routes → Admin domains: routes admin
- Authentication → PostgreSQL: reads and writes
server/services/auth.js - Catalog services → PostgreSQL: reads and writes
server/services/products.js - Cart and orders → PostgreSQL: persists commerce
- Cart and orders → Payment service: handles payment
- Payment service → Razorpay: verifies payment
README.md - Authentication → SMTP email: sends OTP
server/services/auth.js - Authentication → Google sign-in: verifies token
server/services/auth.js - Admin domains → PostgreSQL: reads and writes
- Audit logging → PostgreSQL: records activity
server/middlewares/auditLogMiddleware.js - File management → R2 storage: stores uploads
README.md - File management → PostgreSQL: tracks file records