How dhanush-coder-ux/market-place works
This is a React/TypeScript marketplace and shop-operations frontend, rather than the Vite starter suggested by its README. Users enter through authentication and shop selection, then use routed screens for inventory, purchasing, sales, billing, and business administration; those screens communicate with gateway-backed services. Shared layout, request/authentication infrastructure, and UI contexts support the product. The excerpts establish routing, provider setup, and request/token behavior, but most domain-page implementations were not sampled, so their internal API calls are not asserted.
Main entry points: routes.tsx Route table · ApiContext.tsx API request context · main.tsx App mount · App.tsx Application
Components 24
App entry
- App mount
src/app/main.tsx - Application
src/app/App.tsx - Route table
src/app/routes.tsx - Sign-in and shop selection
src/features/auth
Shared runtime
- Shop workspace layout
src/components/layouts/MainLayout.tsx - API request context
src/context/ApiContext.tsx - Query hook
src/hooks/useApiQuery.tsx - Token lifecycle
src/services/api/tokenManager.ts - HTTP client
src/services/api/apiClient.ts - Service endpoints
src/services/endpoints.ts
Shop operations
- Inventory and stock
src/features/inventory - Product catalog
src/features/product - Purchasing and receiving
src/features/purchase - Customer records
src/features/customer - Employee management
src/features/employee
Commerce
- Sales and returns
src/features/sales - Billing and invoices
src/features/billing - Digital storefront
src/features/digitalstore
Business administration
- Analytics dashboard
src/features/dashboard - Shop settings
src/features/Setting - Plans and subscription
src/features/subscription - Notifications
src/context/NotificationContext.tsx
Other components
- Shop user
- API gateway
Connections 24
- Shop user → Application: opens
src/app/App.tsx - App mount → Application: mounts
src/app/main.tsx - Application → Route table: renders router
src/app/App.tsx - Route table → Shop workspace layout: routes through
src/app/routes.tsx - Route table → Sign-in and shop selection: routes to
src/app/routes.tsx - Route table → Analytics dashboard: routes to
src/app/routes.tsx - Route table → Inventory and stock: routes to
src/app/routes.tsx - Route table → Product catalog: routes to
src/app/routes.tsx - Route table → Purchasing and receiving: routes to
src/app/routes.tsx - Route table → Customer records: routes to
src/app/routes.tsx - Route table → Employee management: routes to
src/app/routes.tsx - Route table → Sales and returns: routes to
src/app/routes.tsx - Route table → Billing and invoices: routes to
src/app/routes.tsx - Route table → Digital storefront: routes to
src/app/routes.tsx - Route table → Shop settings: routes to
src/app/routes.tsx - Route table → Plans and subscription: routes to
src/app/routes.tsx - App mount → API request context: provides
src/app/main.tsx - App mount → Notifications: provides
src/app/main.tsx - Query hook → API request context: gets data
src/hooks/useApiQuery.tsx - API request context → Token lifecycle: manages tokens
src/context/ApiContext.tsx - HTTP client → Token lifecycle: manages tokens
src/services/api/apiClient.ts - Token lifecycle → Service endpoints: uses refresh path
src/services/api/tokenManager.ts - API request context → API gateway: sends requests
src/context/ApiContext.tsx - HTTP client → API gateway: sends requests
src/services/api/apiClient.ts