How niluj/tech_store works
Fusion Electronics is a MERN e-commerce application. Shoppers browse and search the catalog, inspect products, manage a cart, check out, and track orders; authentication and vector-based product recommendations are additional capabilities. The frontend calls the Express API through a shared Axios client, while MongoDB stores catalog, user, and order data. Product changes can trigger Pinecone synchronization. Edges reflect README statements and shown or indexed references; unsampled subsystem details and optional Weaviate wiring are not inferred.
Main entry points: App.jsx App and routes · index.js Express API · product.js Product model · apiClient.js API client
Components 28
Storefront
- App and routes
src/App.jsx - Navigation
src/components/NavigationBar.jsx - Home page
src/pages/Home.jsx - Shop page
src/pages/Shop.jsx - Product details
src/pages/ProductDetails.jsx - Search results
src/components/SearchResults.jsx - Notifications
src/context/NotificationProvider.jsx
Commerce
- Cart
src/pages/Cart.jsx - Checkout
src/pages/Checkout.jsx - Checkout form
src/components/CheckoutForm.jsx - Order confirmation
src/pages/OrderSuccess.jsx - Order tracking
src/pages/OrderTracking.jsx
API
- API client
src/services/apiClient.js - Express API
backend/index.js - Catalog routes
backend/routes/products.js - Search route
backend/routes/search.js - Checkout route
backend/routes/checkout.js - Order routes
backend/routes/orders.js
Data and search
- Product model
backend/models/product.js - Order model
backend/models/order.js - MongoDB
- Pinecone index
- Embedding sync
backend/services/pineconeSync.js - Pinecone client
backend/pineconeClient.js - Weaviate client
backend/weaviateClient.js
Identity
- Auth routes
backend/routes/auth.js - User model
backend/models/user.js
Other components
- Shopper
Connections 40
- Shopper → App and routes: uses storefront
README.md - App and routes → Home page: routes to
src/App.jsx - App and routes → Shop page: routes to
src/App.jsx - App and routes → Product details: routes to
src/App.jsx - App and routes → Cart: routes to
src/App.jsx - App and routes → Checkout: routes to
src/App.jsx - App and routes → Order confirmation: routes to
src/App.jsx - App and routes → Order tracking: routes to
src/App.jsx - App and routes → Navigation: renders
src/App.jsx - Navigation → Search results: renders
src/components/NavigationBar.jsx - Shopper → Navigation: searches catalog
README.md - Home page → API client: requests products
src/pages/Home.jsx - Checkout → Checkout form: renders
src/pages/Checkout.jsx - Checkout → API client: submits order
src/pages/Checkout.jsx - Order tracking → API client: loads order
src/pages/OrderTracking.jsx - Product details → API client: loads product
src/pages/ProductDetails.jsx - API client → Express API: HTTP requests
README.md - Express API → Catalog routes: mounts route
backend/index.js - Express API → Checkout route: mounts route
backend/index.js - Express API → Order routes: mounts route
backend/index.js - Express API → Auth routes: mounts route
backend/index.js - Express API → Search route: mounts route
backend/index.js - Catalog routes → Product model: queries products
backend/routes/products.js - Search route → Product model: queries products
backend/routes/search.js - Checkout route → Product model: reads products
backend/routes/checkout.js - Checkout route → Order model: creates order
backend/routes/checkout.js - Order routes → Order model: queries orders
backend/routes/orders.js - Auth routes → User model: queries users
backend/routes/auth.js - Express API → MongoDB: connects
backend/index.js - Product model → MongoDB: stores products
backend/models/product.js - Order model → MongoDB: stores orders
backend/models/order.js - User model → MongoDB: stores users
- Product model → Embedding sync: syncs changes
backend/models/product.js - Embedding sync → Pinecone client: upserts vectors
backend/services/pineconeSync.js - Pinecone client → Pinecone index: queries index
backend/pineconeClient.js - Catalog routes → Pinecone client: uses vector search
backend/routes/products.js - Shopper → Auth routes: authenticates
README.md - Shopper → Checkout: places order
README.md - Shopper → Order tracking: tracks order
README.md - Weaviate client → Pinecone index