Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

45 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›’ Lazuli Commerce

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.

๐ŸŒ Live Demo

https://lazuli-web.vercel.app/


๐Ÿš€ Engineering Highlights

Full-Stack Architecture

Designed and developed a complete e-commerce platform spanning frontend, backend, authentication, inventory management, payment processing, content administration, and deployment infrastructure.

Secure Payment Processing

Integrated Stripe Checkout with webhook-driven order processing to ensure reliable payment validation and event-based transaction handling.

Inventory Validation System

Implemented stock verification workflows that prevent overselling and ensure product availability is validated before purchase completion.

Authentication & User Management

Built secure authentication and session management using Clerk, including protected routes and personalised user experiences.

CMS-Driven Product Management

Integrated Sanity CMS to enable dynamic management of products and content without requiring code deployments.

AI-Powered Features

Implemented AI-assisted functionality to enhance user interactions and demonstrate integration with modern AI services.

Production Deployment

Deployed on Vercel with automated CI/CD workflows, enabling continuous deployment and rapid iteration.


๐Ÿ› ๏ธ Technology Stack

Frontend

  • Next.js 15 (App Router)
  • React
  • TypeScript
  • Tailwind CSS
  • Zustand

Backend & Services

  • Server Actions
  • API Routes
  • Webhooks
  • Node.js Runtime

Authentication

  • Clerk

Payments

  • Stripe Checkout
  • Stripe Webhooks

Content Management

  • Sanity CMS

AI & Automation

  • AI-powered features
  • Server-side processing

Deployment

  • Vercel
  • GitHub

๐Ÿ’ก Software Engineering Concepts Demonstrated

  • 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

โœจ Key Features

Customer Experience

  • Product catalogue with dynamic product pages
  • Responsive mobile-first design
  • Shopping cart functionality
  • Real-time inventory awareness
  • Secure checkout workflow
  • User account management

Commerce Functionality

  • Product inventory management
  • Stock validation before purchase
  • Order processing workflows
  • Payment confirmation through Stripe webhooks
  • CMS-driven content and product administration

Developer Features

  • Modular component architecture
  • Centralised state management with Zustand
  • Reusable UI components
  • Server-side rendering and optimisation
  • Environment-based configuration
  • Scalable code organisation

AI-Powered Inventory Insights

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.


๐Ÿ—๏ธ System Architecture

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

๐Ÿ“‚ Repository Structure

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

๐Ÿง  Technical Challenges Solved

Payment Reliability

Implemented webhook-based payment verification to ensure orders are processed only after successful payment confirmation.

State Management

Designed a scalable cart architecture using Zustand to manage application state across multiple user flows.

Third-Party Service Integration

Integrated and coordinated multiple external services including Clerk, Stripe, Sanity CMS, and AI functionality within a unified application architecture.

Inventory Consistency

Implemented stock validation workflows to ensure accurate inventory management and prevent overselling.

Production Deployment

Configured deployment pipelines through Vercel to support automated releases and continuous delivery.


๐Ÿš€ Running Locally

Clone the repository:

git clone https://github.com/harrywardy-cmd/lazuli-web.git

cd lazuli-web

Install dependencies:

npm install

Start the development server:

npm run dev

Open:

http://localhost:3000

๐Ÿ” Environment Variables

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=

SANITY_PROJECT_ID=
SANITY_DATASET=

๐ŸŽฏ Why I Built This Project

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.


๐Ÿ”ฎ Future Improvements

  • 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

๐Ÿ‘จโ€๐Ÿ’ป Author

Harry Ward


โญ If you found this project interesting, feel free to star the repository.

Releases

Packages

Contributors

Languages