How anandgadge2/msme_pugarch works
This is a procurement marketplace for organizational buyers and sellers, with a web client and a substantial API backend. The user-facing journey spans marketplace discovery, procurement participation and bidding, award-to-order, and fulfillment activities such as invoicing and delivery. Authentication and shared persistence support those domain stages. The supplied excerpts show selected backend and frontend relationships, but no README or broad route-registration excerpts; unverified links between client and server subsystems are therefore omitted.
Main entry points: procurement-bid.routes.ts Procurement bids · auth.controller.ts Authentication · prisma.ts Application database · App.tsx Web application
Components 19
Web client
- Web application
frontend/src/App.tsx - Session handling
frontend/src/hooks/useAuth.tsx - Marketplace screens
frontend/src/features/marketplace/pages/MarketplaceServiceDetail.tsx - Marketplace API
frontend/src/features/marketplace/api.ts
Identity and platform
- API server
backend/src/app.ts - Authentication
backend/src/modules/auth/auth.controller.ts - Session cookies
backend/src/services/auth-cookie.service.ts - Token service
backend/src/services/token.service.ts - Application database
backend/src/lib/prisma.ts - Cache service
backend/src/services/cache.service.ts
Procurement lifecycle
- Marketplace routes
backend/src/routes/marketplace.routes.ts - Procurement bids
backend/src/modules/procurementBid/procurement-bid.routes.ts - Bid operations
backend/src/modules/procurementBid/procurement-bid.service.ts - L1 comparison
backend/src/modules/l1Comparison/l1-comparison.service.ts
Order fulfillment
- Payments
backend/src/modules/payments/payment.service.ts - Delivery tracking
backend/src/modules/delivery/delivery.service.ts - Fulfillment workflow
backend/src/services/workflow/fulfillment-workflow.service.ts - Invoice PDF
backend/src/services/invoice-pdf.service.ts
Other components
- Buyer or seller
Connections 18
- Buyer or seller → Web application: uses
- Web application → Marketplace screens: renders
frontend/src/App.tsx - Web application → Session handling: uses
frontend/src/App.tsx - Marketplace screens → Marketplace API: uses
frontend/src/features/marketplace/pages/MarketplaceServiceDetail.tsx - Session handling → Authentication: calls auth endpoints
frontend/src/hooks/useAuth.tsx - API server → Authentication: serves
- Authentication → Application database: reads and writes
backend/src/modules/auth/auth.controller.ts - Authentication → Session cookies: issues sessions
backend/src/modules/auth/auth.controller.ts - Session cookies → Token service: issues and verifies
backend/src/services/auth-cookie.service.ts - Session cookies → Application database: stores sessions
backend/src/services/auth-cookie.service.ts - Application database → Cache service: invalidates
backend/src/lib/prisma.ts - API server → Marketplace routes: serves
- Marketplace routes → Procurement bids: imports
backend/src/routes/marketplace.routes.ts - Procurement bids → Bid operations: delegates to
backend/src/modules/procurementBid/procurement-bid.routes.ts - Procurement bids → Cache service: caches bid data
backend/src/modules/procurementBid/procurement-bid.routes.ts - Procurement bids → Fulfillment workflow: uses workflow
backend/src/modules/procurementBid/procurement-bid.routes.ts - Fulfillment workflow → Application database: updates records
backend/src/services/workflow/fulfillment-workflow.service.ts - Fulfillment workflow → Invoice PDF: generates PDF
backend/src/services/workflow/fulfillment-workflow.service.ts