Loading...
Please wait while we fetch your content.
Please wait while we fetch your content.
A full-stack e-commerce platform built with Next.js, MongoDB, and Stripe. Harlow is engineering-first: the focus is on predictable cart state, webhook-verified payments, and a reliable order lifecycle. Written in pure JavaScript (ES6+), the project prioritizes correctness over UI complexity.
// Next.js
Built a modern full-stack architecture with Server Components, Route Handlers, and Server Actions.
// Redux Toolkit
Managed predictable cart state with a single source of truth and server-synced mutations.
// MongoDB & Mongoose
Managed application data and database models for products, carts, and orders.
// NextAuth
Implemented secure authentication and session management.
// Stripe
Handled secure online payments with webhook-verified order fulfillment.
Keeping client UI state in sync with the database without race conditions or desyncs.
Building a secure pipeline for processing user orders with server-side validation.
Processing payments securely and marking orders "Paid" only when Stripe confirms the transaction.
Preventing out-of-stock additions and quantity manipulation from the client side.
Custom createAsyncThunk factories handle Add, Increment, Decrement, and Remove operations. The useCart hook abstracts dispatch logic so the UI updates only after a successful server response.
A dedicated REST route validates the user session, calculates totals, and stores order details in MongoDB to keep data consistent.
session/route.js creates the Stripe Checkout session . webhook/route.js listens for checkout.session.completed events, updates order status, and clears the user's cart
Server Actions check real stock in MongoDB before mutating the cart. Helper functions compare MongoDB ObjectIds with frontend String IDs safely
// frontend
Modern Storefront: Responsive, component-driven UI using shadcn/ui and Tailwind CSS
Cart & Checkout Flow: Redux Toolkit for global state, synchronized order histories
Protected Routes: Checkout and order history require authentication via NextAuth
// backend
E-Commerce Database Architecture: Scalable data models using MongoDB & Mongoose for products, carts, orders, and user profiles
Secure Payments: Stripe integration for checkout processing and webhook-verified order fulfillment
Server Actions: Secure database mutations without exposing API endpoints
Authentication & Security: NextAuth with Bcrypt for password hashing, Cloudinary for image hosting