An online shop that sells original Korean skincare and makeup and delivers across Uzbekistan. I built and run all of it: the storefront, the owner's admin panel, the API, the AI skincare advisor, hosting and deployment.
Tests run on every push; a passing build deploys itself and is health-checked. The database is backed up every night and encrypted before it leaves the server, with a tested restore.
Tested on a real database
125 automated tests start a throwaway MongoDB per test file, so they exercise real queries and transactions instead of mocks.
Deep dive
AI Beauty, correct and 95% cheaper
A four-tap skin quiz builds a morning and evening routine, and a chat answers skincare questions. It must only recommend products that are really in stock, in the shopper's language, at a cost a small shop can afford.
Request flow
01Quiz / chatskin type, goals
02Quotaper customer, per day
03Claudecached catalog prompt
04Zod + stockvalidate, drop missing
05Routineillustrated guide
Problem → solution → result
One answer cost about 13¢, because a large model read the full catalog on every request. Moved to Claude Haiku, cached the catalog prompt, trimmed the catalog and added a daily quota. Now well under 1¢ per answer, 95%+ cheaper, with no visible quality drop.
An LLM can invent products the shop doesn't sell. Structured output is validated with a Zod schema, then every suggested product is checked against live inventory, so only in-stock products ever reach the shopper.
Screens
01 / 06
Storefront
Product page with reviews
AI Beauty: a routine step by step
Routine built only from in-stock products
Home on a phone
Product on a phone
AI Beauty quiz
Routine on a phone
Admin: orders, products, stock, reviews
Troubleshooting
01
Uzbek answers in the wrong script
Problem
Uzbek is written in Latin script, but some AI answers mixed in Cyrillic or used the wrong letters (o‘, g‘).
Cause
The model knows both scripts and drifts between them, especially on short answers.
Fix
Stricter language instructions plus an automatic check that Uzbek text stays in Latin script with the right letters.
Result
Answers arrive in the shopper's language and script.
02
Security holes before launch
Problem
A security review found payment receipts reachable by URL, and sign-up / profile updates that could carry an admin flag.
Cause
Uploads were served as public files, and request bodies were trusted without a whitelist.
Fix
Receipts moved behind auth (images only), every input validated, role fields blocked, member status rechecked on every request.
Result
Receipts are private and only an admin can make an admin.
What worked and what I learned
What I learned
For a small business, AI cost is a feature: measure cost per answer from day one.
Never let an LLM be the source of truth; check its output against your own data.
Running a live shop means backups, health checks and boring safety work matter as much as features.