How jaya626/jp-smart-tech-labs-website works
JP Smart Tech Labs is a storefront and services site for 3D printing, prototyping, and technology products. A visitor enters the routed frontend, browses the product catalog or service information, and can add products to a persisted cart. The frontend also includes a model-customization workflow with STL upload, model viewing, print settings, and pricing components. A separate Express backend currently exposes root and health responses; the excerpts do not show it serving the frontend’s product, cart, or contact flows. Several listed pages and integrations were not sampled, so their connections are not asserted.
Main entry points: App.jsx Page Router · HomePage.jsx Home Page · Navbar.jsx Navigation · Footer.jsx Footer
Components 30
Frontend Entry
- React Mount
frontend/src/main.jsx - Page Router
frontend/src/App.jsx - Home Page
frontend/src/pages/HomePage.jsx - Hero
frontend/src/components/home/Hero.jsx - Category Grid
frontend/src/components/category/CategoryGrid.jsx - Website Layout
frontend/src/layouts/WebsiteLayout.jsx - Navigation
frontend/src/components/layout/Navbar.jsx - Footer
frontend/src/components/layout/Footer.jsx
Product Shopping
- Product Listing
frontend/src/pages/ProductsPage.jsx - Product Catalog
frontend/src/utils/products.js - Product Details
frontend/src/pages/ProductDetailsPage.jsx - Cart Page
frontend/src/pages/CartPage.jsx - Cart State
frontend/src/store/cartStore.js
Services And Contact
- Services Listing
frontend/src/pages/ServicesPage.jsx - Service Details
frontend/src/pages/ServiceDetailPage.jsx - Contact Page
frontend/src/pages/ContactPage.jsx - Quote Page
frontend/src/pages/QuotePage.jsx
3D Customization
- Customization Page
frontend/src/pages/CustomizationPage.jsx - Customization Panel
frontend/src/components/customization/CustomizationSection.jsx - STL Upload
frontend/src/components/customization/STLUploader.jsx - 3D Model Viewer
frontend/src/components/customization/ModelViewer.jsx - Print Settings
frontend/src/components/customization/PrintSettings.jsx - Price Breakdown
frontend/src/components/customization/PriceBreakdown.jsx - Gallery Page
frontend/src/pages/GalleryPage.jsx - Gallery Grid
frontend/src/components/gallery/GalleryGrid.jsx - Gallery Lightbox
frontend/src/components/gallery/GalleryLightbox.jsx
Backend Runtime
- HTTP Server
backend/server.js - Express App
backend/src/app.js - Environment Config
backend/src/config/env.js
Other components
- Visitor
Connections 34
- Visitor → React Mount: opens site
frontend/src/main.jsx - React Mount → Page Router: renders
frontend/src/main.jsx - Page Router → Home Page: routes home
frontend/src/App.jsx - Page Router → Product Listing: routes shop
frontend/src/App.jsx - Page Router → Product Details: routes product
frontend/src/App.jsx - Page Router → Cart Page: routes cart
frontend/src/App.jsx - Page Router → Services Listing: routes services
frontend/src/App.jsx - Page Router → Service Details: routes detail
frontend/src/App.jsx - Page Router → Contact Page: routes contact
frontend/src/App.jsx - Home Page → Navigation: renders
frontend/src/pages/HomePage.jsx - Home Page → Footer: renders
frontend/src/pages/HomePage.jsx - Home Page → Hero: renders
frontend/src/pages/HomePage.jsx - Home Page → Category Grid: renders
frontend/src/pages/HomePage.jsx - Home Page → Customization Panel: renders
frontend/src/pages/HomePage.jsx - Product Listing → Product Catalog: reads products
frontend/src/pages/ProductsPage.jsx - Product Listing → Cart State: updates cart
frontend/src/pages/ProductsPage.jsx - Product Details → Product Catalog: reads products
frontend/src/pages/ProductDetailsPage.jsx - Cart Page → Product Catalog: reads products
frontend/src/pages/CartPage.jsx - Cart Page → Cart State: reads cart
frontend/src/pages/CartPage.jsx - Services Listing → Navigation: renders
frontend/src/pages/ServicesPage.jsx - Services Listing → Footer: renders
frontend/src/pages/ServicesPage.jsx - Service Details → Navigation: renders
frontend/src/pages/ServiceDetailPage.jsx - Service Details → Footer: renders
frontend/src/pages/ServiceDetailPage.jsx - Customization Panel → STL Upload: renders
frontend/src/components/customization/CustomizationSection.jsx - Customization Panel → 3D Model Viewer: renders
frontend/src/components/customization/CustomizationSection.jsx - Customization Panel → Print Settings: renders
frontend/src/components/customization/CustomizationSection.jsx - Product Listing → Navigation: renders
frontend/src/pages/ProductsPage.jsx - Product Listing → Footer: renders
frontend/src/pages/ProductsPage.jsx - Cart Page → Navigation: renders
frontend/src/pages/CartPage.jsx - Cart Page → Footer: renders
frontend/src/pages/CartPage.jsx - Product Details → Navigation: renders
frontend/src/pages/ProductDetailsPage.jsx - Product Details → Footer: renders
frontend/src/pages/ProductDetailsPage.jsx - HTTP Server → Environment Config: loads config
backend/server.js - HTTP Server → Express App: listens with
backend/server.js