Skip to main content

Gold Gallery – Online Shop for Gold Jewellery.

White-label online shop for a jeweller: prices are calculated live from the gold rate, weight and labour cost – with an admin area, roles and a setup wizard.

amirrezaafshar / goldgalerie-–-onlineshop-für-goldschmuck
Completed C# / Next.js Updated: 2026-11-24

Gold Gallery – Online Shop for Gold Jewellery

White-label online shop for a jeweller: prices are calculated live from the gold rate, weight and labour cost – with an admin area, roles and a setup wizard.

Gold Gallery – Online Shop for Gold Jewellery

About the project

An online shop for gold jewellery with up-to-the-minute prices. The price of each piece is calculated from the daily rate × actual weight × fineness, plus labour, margin and tax. I originally built the site for a jeweller – in Persian, right-to-left and with prices in toman. For the portfolio there is now a German version featuring the fictional “Goldatelier Lindner” in Stuttgart; the Persian version lives in the “persisch” branch.

In the live demo you can sign in as a customer or admin with one click and try everything out.

Technical implementation

Back end with .NET 10 in Clean Architecture (Domain, Application, Infrastructure, API), EF Core with SQLite or SQL Server, JWT with a refresh cookie and SignalR for the live gold rate. The front end is a Next.js 16 application with Tailwind 4 and animations from 21st.dev. Money is stored as integer cents, weight in milligrams and percentages in basis points – so there are no rounding errors. Runs as a Docker container on my own server.

Key Features

  • Live gold rate: The rate is streamed live and all prices are recalculated on the server.
  • Price lock: The price is locked in the cart for 10 minutes; if the rate is outdated, sales stop automatically.
  • Unique pieces: Every piece of jewellery has its own weight, size and branch.
  • White label: Name, logo, colours, home page, texts and SEO can be changed in the admin area.
  • Instalment calculator: Down payment, monthly instalments, limit and fee can be set in the admin area.
  • Roles & demo login: Customer, wholesaler, staff and admin – one click each in the demo.

My Role

The idea, requirements and design direction came from me, as did every decision and the testing of all workflows. I had the code written through vibe coding in dialogue with Claude.

Architecture

Domain (entities, money and weight types, pricing rules) → Application (use cases, price calculation, validation) → Infrastructure (EF Core, Identity, SignalR hub, file storage) → API (REST + hub) → Next.js front end with its own admin area.

Challenges

Prices change several times a day. A customer must never buy at an outdated rate, and every piece of jewellery is unique, with its own weight and size.

Solutions

A 10-minute price lock in the cart, an automatic sales stop when the rate is outdated or jumps sharply, unique pieces instead of variants and fully server-side price calculation.

Code Highlight

Live-Goldkurs per SignalR · Preis-Engine mit Cent/Milligramm/Basispunkten · Ratenkauf-Rechner · White-Label-Einstellungen für Texte, Farben und Startseiten-Blöcke · Rollen Kunde, Großhändler, Mitarbeiter und Admin · 56 Servertests (xUnit)

Key Learnings

Clean money calculations without floating-point numbers · Real-time updates with SignalR · Clean Architecture in a real shop · Multilingual support and RTL/LTR · Docker deployment on my own server

// Back to project overview