A production-ready full-stack e-commerce platform built with Next.js, TypeScript, and modern cloud technologies.
Lazuli Commerce simulates a real-world online retail system, supporting secure authentication, inventory-aware purchasing, payment processing, content management, and AI-enhanced user experiences.
The project was designed to demonstrate modern software engineering practices including full-stack development, scalable architecture, state management, third-party integrations, and production deployment workflows.
https://lazuli-web.vercel.app/
Designed and developed a complete e-commerce platform spanning frontend, backend, authentication, inventory management, payment processing, content administration, and deployment infrastructure.
Integrated Stripe Checkout with webhook-driven order processing to ensure reliable payment validation and event-based transaction handling.
Implemented stock verification workflows that prevent overselling and ensure product availability is validated before purchase completion.
Built secure authentication and session management using Clerk, including protected routes and personalised user experiences.
Integrated Sanity CMS to enable dynamic management of products and content without requiring code deployments.
Implemented AI-assisted functionality to enhance user interactions and demonstrate integration with modern AI services.
Deployed on Vercel with automated CI/CD workflows, enabling continuous deployment and rapid iteration.
- Next.js 15 (App Router)
- React
- TypeScript
- Tailwind CSS
- Zustand
- Server Actions
- API Routes
- Webhooks
- Node.js Runtime
- Clerk
- Stripe Checkout
- Stripe Webhooks
- Sanity CMS
- AI-powered features
- Server-side processing
- Vercel
- GitHub
- Full-Stack Development
- Type-Safe Development
- State Management
- Authentication & Authorization
- Payment Processing
- Webhook Architecture
- Server Actions
- CMS Integration
- AI Integration
- Inventory Management
- Component-Based Architecture
- Responsive Design
- CI/CD Deployment
- Production Hosting
- Scalable Project Structure
- Product catalogue with dynamic product pages
- Responsive mobile-first design
- Shopping cart functionality
- Real-time inventory awareness
- Secure checkout workflow
- User account management
- Product inventory management
- Stock validation before purchase
- Order processing workflows
- Payment confirmation through Stripe webhooks
- CMS-driven content and product administration
- Modular component architecture
- Centralised state management with Zustand
- Reusable UI components
- Server-side rendering and optimisation
- Environment-based configuration
- Scalable code organisation
Developed an AI-assisted inventory analysis system that provides administrators with stock recommendations, inventory observations, and operational insights based on current product data.
The feature is designed to integrate with external LLM providers and can be enabled through API credentials, demonstrating practical experience integrating AI services into business applications.
Lazuli Commerce
โ
โโโ Frontend Layer (Next.js App Router)
โ โ
โ โโโ Product Catalogue
โ โโโ Product Detail Pages
โ โโโ Shopping Cart
โ โโโ Checkout Experience
โ โโโ User Dashboard
โ โโโ Authentication Flows
โ
โโโ Component Layer
โ โ
โ โโโ Reusable UI Components
โ โโโ Commerce Components
โ โโโ Navigation Components
โ โโโ Shared Layout Components
โ
โโโ State Management Layer
โ โ
โ โโโ Zustand Store
โ โโโ Cart State
โ โโโ Product State
โ โโโ User Session State
โ
โโโ Business Logic Layer
โ โ
โ โโโ Server Actions
โ โโโ Inventory Validation
โ โโโ Checkout Processing
โ โโโ Order Management
โ โโโ AI-Powered Features
โ
โโโ Authentication Layer
โ โ
โ โโโ Clerk
โ โโโ User Registration
โ โโโ User Login
โ โโโ Session Management
โ โโโ Route Protection
โ
โโโ Payment Layer
โ โ
โ โโโ Stripe
โ โโโ Checkout Sessions
โ โโโ Payment Processing
โ โโโ Webhook Events
โ
โโโ Content Management Layer
โ โ
โ โโโ Sanity CMS
โ โโโ Product Data
โ โโโ Content Management
โ โโโ Inventory Information
โ
โโโ Deployment Layer
โ
โโโ GitHub
โโโ Vercel CI/CD
โโโ Production Hosting
lazuli-web/
โ
โโโ app/
โ โโโ Routes
โ โโโ Product Pages
โ โโโ Checkout Flows
โ โโโ Server Components
โ
โโโ components/
โ โโโ Commerce Components
โ โโโ Shared UI
โ โโโ Layout Components
โ
โโโ lib/
โ โโโ actions/
โ โโโ ai/
โ โโโ constants/
โ โโโ hooks/
โ โโโ store/
โ โโโ utilities
โ
โโโ sanity/
โ โโโ schemaTypes/
โ โโโ queries/
โ โโโ CMS Configuration
โ
โโโ public/
โ
โโโ Configuration Files
โโโ Next.js
โโโ TypeScript
โโโ Tailwind
โโโ Sanity
โโโ Deployment Config
Implemented webhook-based payment verification to ensure orders are processed only after successful payment confirmation.
Designed a scalable cart architecture using Zustand to manage application state across multiple user flows.
Integrated and coordinated multiple external services including Clerk, Stripe, Sanity CMS, and AI functionality within a unified application architecture.
Implemented stock validation workflows to ensure accurate inventory management and prevent overselling.
Configured deployment pipelines through Vercel to support automated releases and continuous delivery.
Clone the repository:
git clone https://github.com/harrywardy-cmd/lazuli-web.git
cd lazuli-webInstall dependencies:
npm installStart the development server:
npm run devOpen:
http://localhost:3000
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
SANITY_PROJECT_ID=
SANITY_DATASET=Many portfolio projects focus on isolated technical concepts.
Lazuli Commerce was built to demonstrate how modern production systems combine frontend engineering, backend services, authentication, payment infrastructure, content management, AI functionality, deployment automation, and third-party integrations into a cohesive software product.
The project simulates the type of architecture, workflows, and engineering decisions commonly encountered in commercial software development environments.
- Order history dashboard
- Product reviews and ratings
- Wishlist functionality
- Admin analytics dashboard
- Multi-vendor marketplace support
- Advanced AI shopping assistant
- Automated inventory notifications
- End-to-end testing suite
Harry Ward
- Portfolio: https://harry-ward-portfolio.vercel.app
- GitHub: https://github.com/harrywardy-cmd
- LinkedIn: https://www.linkedin.com/in/harry-ward-b2b9b4319
โญ If you found this project interesting, feel free to star the repository.