How vaibhavk73/product-catalogue works
Collective is a full-stack product catalogue. Customers browse featured products, categories, search results and product details through the React client; the client’s API service sends catalogue requests to the Express backend, which retrieves product data from Fake Store API. Customers can also submit enquiries: the backend validates and rate-limits them before sending email through SMTP, after which the client displays confirmation. The graph preserves documented capabilities, but several page and routing implementations were not sampled, so uncertain links are omitted or dashed.
Main entry points: app.ts API routes · api.ts API client · EnquiryPage.tsx Enquiry form · product-provider.ts Product provider
Components 13
Customer client
- Client shell
client/src/App.tsx - Category browse
client/src/pages/CategoryPage.tsx - Product card
client/src/components/ProductCard.tsx - Product details
client/src/pages/ProductDetails.tsx - Enquiry form
client/src/pages/EnquiryPage.tsx - API client
client/src/services/api.ts
Catalogue API
- HTTP server
server/src/index.ts - API routes
server/src/app.ts
External integrations
- Product provider
server/src/integrations/product-provider.ts - Email provider
server/src/integrations/email-provider.ts
External systems
- Fake Store API
- SMTP service
Other components
- Customer
Connections 11
- Customer → Client shell: browses
README.md - Customer → Enquiry form: submits enquiry
README.md - Enquiry form → API client: submits data
client/src/pages/EnquiryPage.tsx - Product details → API client: fetches product
client/src/pages/ProductDetails.tsx - Category browse → API client: requests catalogue
- API client → API routes: HTTP requests
README.md - HTTP server → API routes: starts
server/src/index.ts - API routes → Product provider: calls
server/src/app.ts - API routes → Email provider: sends enquiry
server/src/app.ts - Product provider → Fake Store API: fetches products
server/src/integrations/product-provider.ts - Email provider → SMTP service: sends email
server/src/integrations/email-provider.ts