Back to projects

Case study

Maison de Bijoux

An online store for a Silver 925 jewelry brand in Lebanon, built to handle one-of-a-kind sizes, seasonal sales and a growing catalog without the shop ever selling something it doesn't have.

Visit the live store
Type
E-commerce store, live
Catalog
80+ products, sized per item
Frontend
React · Zustand · Tailwind CSS
Backend
PocketBase on Render
Maison de Bijoux home page

The hard parts

A jewelry store looks simple. These three problems are where most of the work went.

Stock that can't oversell

Rings come in specific sizes, often one piece each. A browser-side stock check can't stop two shoppers from buying the last one at the same time.

How it works

  • Inventory is stored per size on each product.
  • When an order is created, a PocketBase server hook checks every line against stock on hand, reserves it, and rejects the order with a clear message if a size just sold out.
  • The cart still shows live availability per size, so shoppers rarely hit that error.

Promotions that agree everywhere

Campaigns like “White November” discount some products and not others. If each page calculated prices on its own, cards, cart and checkout could disagree.

How it works

  • Promotions are a small declarative list: which products they match (by gender, subcategory or SKU), the discount, and start and end dates in Beirut time.
  • Every product is priced once when it loads, so cards, product pages, cart, checkout, saved orders and ad tracking all see the same sale price.
  • If two promotions match a product, the biggest discount wins.

Sold-out items that still sell

Hiding a product the moment it sells out breaks shared links and makes the catalog feel empty.

How it works

  • Sold-out products stay visible with an “Out of stock” state instead of disappearing.
  • Restocking a size automatically puts the product back on sale.
  • A separate hidden flag removes a product from the store entirely when the owner wants that.

Inside the store

Collections page with filters and sale prices
Collections: filters, sorting, and sale prices from the active promotion.
Product page with sale price, size selection and resizing option
Product page: campaign label, per-size selection and an optional resizing service.
Product page on a phone
Designed mobile-first.

What shoppers get

  • Collections with filters (shop for, category, metal, availability, price) and sorting
  • Product pages with galleries, size selection and a ring-resizing option
  • Search, wishlist, cart and checkout with order capture
  • Shareable product URLs that keep working after a product is renamed
  • Meta Pixel events (view content, add to cart) for the brand's ad campaigns

Under the hood

  1. BrowserReact app, Zustand cart & wishlist, Tailwind CSS
  2. Pricingpromotions applied once per product on load
  3. APIPocketBase REST API on Render
  4. Server hooksstock checks, per-size reservations, restocks
  5. TrackingMeta Pixel shopping events

Questions about this project?

Email me if you'd like to know more about how it was built.