A self-hosted, full-stack online store for a small family business selling handcrafted homeware, with a complete admin panel and its own production infrastructure on a single VPS.
11/2/2026
development
Family Business
VAERFAM is the online store for a small family business that sells handcrafted household goods: ceramics, linen, wood and candles. I built it end to end, from the storefront and checkout to the admin panel, the integrations and the server it runs on. It covers the whole order lifecycle: catalog, cart, guest checkout, payment, delivery, emails, refunds and cancellations, all with Russian payment, delivery and email providers and in line with local e-commerce rules such as fiscal receipts, personal-data consent and a public offer.
The storefront is mobile first. Customers filter the catalog by category, color and price, switch between product variants (type, color, size) on one product page, and check out as a guest in four steps, confirming their email with a one-time code. Delivery can go to a CDEK pickup point, with real tariffs calculated from each product's weight and dimensions and a city search that understands nicknames, typos and the wrong keyboard layout, or by courier, or as a free self-pickup. Payment goes through T-Bank's hosted page with cards, SBP and T-Pay, and every payment carries a fiscal receipt.
Most of the work went into the admin panel, which is what the business actually runs on day to day. The dashboard has a period picker with comparisons against the previous period and a 'needs attention' strip for orders waiting to ship, overdue orders, pickups and cancellation requests. Beneath it are revenue, conversion, average order value, refunds and stock value KPIs, a revenue-by-day chart, top products, a delivery-method split, and a low-stock list that estimates how many days of stock are left from recent sales.
Orders can be filtered, sorted and exported to CSV. Each order page shows items, internal notes, editable customer contacts and payment status, and lets an admin create, cancel or refresh the CDEK shipment and download its label. Status changes follow the delivery type: shipped and delivered come from CDEK automatically, and approving a customer's cancellation request restores stock and starts a refund, which can be retried if the bank rejects it. The product editor covers prices, stock, suggested SKUs, variants, CDEK dimensions, drag-and-drop images and videos, and bulk CSV import and export.
The rest of the panel handles everything a small shop would otherwise need a developer for. Legal documents are uploaded PDFs with role flags for the privacy policy, consent and cookie banner. A content editor changes the home page, About, Contacts and FAQ without a deploy. A notification log records every email and Telegram message, and a user manager requires an email magic-link step-up for role changes, with guards against removing the last admin. In Settings, an admin can turn on maintenance mode, toggle delivery methods, and switch payments, email and CDEK between sandbox and production at runtime, and integration secrets never reach the browser.
The infrastructure is deliberately simple and fully owned. Production is one VPS running Docker Compose: Caddy as the only public entry point with automatic HTTPS, HTTP/3, HSTS, a strict CSP and per-route rate limits; the app container; PostgreSQL 16 on its own volume; a separate private volume for legal PDFs; self-hosted Umami analytics and Uptime Kuma status pages on subdomains; and a small cron container that calls authenticated job endpoints. Those jobs poll CDEK in case a webhook was missed, retry failed shipments, cancel orders left unpaid after 24 hours, clean up abandoned accounts, and take encrypted database backups that are emailed off the server.
Payments and deliveries are driven by idempotent webhooks: the bank's token is always verified, stock is decremented exactly once, and order numbers are generated under a database lock. GitHub Actions typechecks and builds every push. On main, it deploys over SSH, tags the current image as a rollback, runs a 90-second health check against the readiness endpoint, and rolls back automatically if the new version is unhealthy.
It is written in strict TypeScript on TanStack Start (React 19 with SSR and server functions), with Drizzle ORM, BetterAuth email-code login, TanStack Query, Form and Table, Zod validation shared between client and server, Zustand for the cart, Tailwind CSS and Recharts. The screenshots here come from a local instance filled with synthetic demo data; all names, emails, phone numbers and addresses are generated.