FrontendFeatured

SpeedTech Lights — Automotive E-Commerce

VEEIVS PVT LTD· 03/2025 – 03/2026

A full-scale e-commerce platform for SpeedTech Lights — a US-based automotive lighting retailer selling every type of car light including headlights, tail lights, fog lights, LED strips, HID kits, DRL lights, and custom lighting accessories for all vehicle makes and models. Built as sole frontend engineer, migrating a legacy jQuery codebase to a modern Next.js feature-based architecture with end-to-end ownership of the entire storefront.

Tech Stack

Next.jsTypeScriptReact QueryZustandReact Hook FormZodTailwind CSSPayPal SDKREST APIs

Key Features

  • SSR-powered category and product pages via Next.js — instant load, fully crawlable, and SEO-optimized with generateMetadata per route
  • Category pages with dynamic filtering by vehicle make, model, year, light type, and price — deeply nested dependency filters with cascading React Query fetches
  • Product detail pages with variant selection, fitment compatibility checker, stock status, and related product recommendations
  • Persistent cart management — add, update, remove, and quantity control with Zustand state synced to localStorage for cross-session persistence
  • Guest checkout — full purchase flow without account creation, with order confirmation via email
  • Registered user checkout — saved addresses, order history, invoice downloads, and account dashboard
  • User registration and authentication — sign up, login, email verification, and password reset with React Hook Form + Zod schema validation
  • Multi-step shipping flow — address entry, shipping method selection, estimated delivery, and order confirmation with real-time rate calculation
  • Full PayPal checkout pipeline — cart review, payment, success, and PDF invoice generation auto-sent on order completion
  • Gift cards — purchase, redeem, and manage gift card balances at checkout
  • Rewards program — points earned per purchase, redeemable at checkout, with account dashboard showing balance and history
  • Government POS — dedicated purchase order flow for government and institutional buyers with PO number entry, approval workflow, and invoice generation
  • Blog management — SEO-optimized blog with categorized articles, automotive lighting guides, and installation tips
  • Secure API integration via Next.js Proxy Routes — all third-party credentials server-side, zero secrets in the client bundle

Problem Statement

SpeedTech Lights had a slow, outdated jQuery-based storefront that was hurting SEO, conversion rates, and mobile usability. The product catalog had thousands of SKUs across dozens of car lighting categories — all served from a rigid legacy setup with no dynamic filtering, poor mobile experience, and no structured checkout flow.

Architecture Overview

Next.js App Router with feature-based folder structure — each domain (catalog, product, cart, checkout, orders) is self-contained. API calls go through Next.js Proxy Routes to hide credentials and add request-level caching. React Query manages all server state with stale-while-revalidate. Zustand handles cart and UI state. generateMetadata on every dynamic route ensures full SEO coverage for all product and category pages.

Challenges

  • Migrating thousands of product SKUs from jQuery templates to a structured Next.js data model
  • Building vehicle-based filtering (make → model → year → light type) with deeply nested dependencies
  • Implementing PayPal SDK inside Next.js App Router without hydration conflicts
  • Keeping sensitive API keys server-side while serving a fully dynamic client-side cart
  • Generating SEO metadata dynamically for thousands of product and category pages at scale

Solutions

  • Designed a normalized product schema mapping SKUs to vehicle fitments with indexed category trees
  • Built a cascading filter hook using React Query dependent queries — each level fetches based on parent selection
  • Wrapped PayPal SDK in a client component with dynamic import and ssr:false to prevent hydration issues
  • All third-party API calls routed through Next.js Proxy Route Handlers — zero secrets in client bundle
  • Used generateStaticParams for top-level categories and generateMetadata for dynamic product routes — fully crawlable by Google

Results & Impact

  • Live production platform serving real US customers at speedtechlights.com
  • Full jQuery-to-Next.js migration delivered as sole frontend engineer
  • SEO-optimized pages across entire product catalog — every category and product indexable
  • Secure PayPal checkout with PDF invoice generation — end-to-end purchase flow in production
  • Responsive across all devices — mobile, tablet, and desktop with pixel-perfect UI