A production-hardened e-commerce platform for Ankara fabrics, with atomic payment handling, PWA push notifications, and a persistent guest cart.
Stack
Brooks Fabrics is an e-commerce platform for Ankara fabric sales, built to handle real transactions at production quality rather than as a demo storefront.
An e-commerce checkout handling real payments needed to be safe against race conditions and duplicate charges, secure against unauthorized admin access, and resilient — with a cart experience that didn't lose items when a guest logged in, and a way to reach customers outside the browser tab.
Implemented atomic idempotency on payments using MongoDB transactions to prevent duplicate charges and race conditions on the Paystack integration. Locked down admin routes with proper enforcement, added Zod validation across inputs, and applied Upstash-based rate limiting against abuse. Built a persistent cart that merges guest cart contents into the user's account on login rather than discarding them, plus saved addresses and full order history. Turned the storefront into a PWA with web push notifications for order updates, and wired up transactional emails via Resend for order confirmations and receipts. Added dynamic SEO routing for product and category pages, and set up a GitHub Actions CI pipeline.
A production-ready fabric e-commerce platform with a hardened payment path, persistent shopping experience across sessions, and customer communication (push + email) built in rather than bolted on.
Freelance/client project. Full audit and feature-expansion pass completed — payment security, cart persistence, and PWA layer are all shipped.


