SN Noor Herbal Store
A production e-commerce store and admin for a Pakistani herbal hair care brand.
Freelance project shipped to the client · BSCS 8th semester E-commerce class project · Live at snnoor.com, orders opening soon

The brand needed its own online store for customers across Pakistan, most of whom shop on their phones and pay cash on delivery, and a way for the owner to manage products, orders and store content without a developer.
One Cloudflare Worker serves the React storefront and a Hono API from the same origin, with data in Cloudflare D1. Every price, discount and total is calculated on the server by a single pricing function, and the owner runs the store from a role-based admin.
Key features
- 01
Storefront with home, shop (category filter, search and sort), product and Hair Care Kit pages with ingredients, usage and FAQ, cart, checkout and order tracking.
- 02
Server-side pricing engine for sale prices, the kit's own price and saving, a "Switch to the Care Kit" suggestion in the cart, coupons and promotions. Prices sent by the browser are ignored.
- 03
Cash on delivery checkout with Pakistani mobile number validation, idempotent order creation and atomic stock updates. Online payment sits behind a provider interface with a signed demo gateway for testing.
- 04
Admin with owner and staff roles: sales dashboard with charts, order workflow with printable slips, products, prices, stock, FAQ, coupons, promotions, policy pages and settings.
- 05
Transactional emails for order confirmation, owner alerts, status updates and low stock, with an email log and resend.
- 06
Security: zod validation, PBKDF2 password hashing, hashed session tokens, CSRF checks, rate limits, Cloudflare Turnstile, a Content Security Policy and an audit log of admin changes.
Architecture
- 1React storefront and admin (Vite, Tailwind CSS)
- 2Hono API on one Cloudflare Worker (same origin)
- 3zod validation, sessions and rate limits
- 4pricing engine and order service
- 5Cloudflare D1
- 6email and payment providers
Results
Built in four phases and deployed to snnoor.com (the store is live with orders paused until the owner's launch), with an API test suite that runs inside the Workers runtime against a real local D1 database, and a written manual for the shop owner. The repository is private because it is client work.
Tech stack
Area
Freelance & Client · Course Projects · Web & Full-Stack