bash — ~/projects/dazzling-dunes
$cd ~/projects/dazzling-dunes && cat summary.txt
A live digital-goods storefront for game keys, activation services, gift cards, subscriptions and in-game currency. The catalog is database-backed; every product carries platform, region, delivery method, warranty and activation steps, and checkout takes admin-verified manual payments. Staff run products, inventory, orders, currencies, support and warranty from /admin.
DAZZLING DUNES
Full-Stack Developer · #8d3f7a2 live
Next.js 16 · React 19 · Tailwind CSS 4 · SQLite/Postgres
dazzlingdunes.com
github.com/sleepyhead000/dazzling-dunes-website
~/projects/dazzling-dunes $
cat README.md
README.md
$cat overview.txt
Dazzling Dunes is a production storefront and admin built on Next.js 16, React 19, Tailwind CSS 4, and a portable SQLite/Postgres data layer. It runs live at dazzlingdunes.com. Customers browse a database-backed catalog, pay through manually verified methods, and receive keys, codes, or admin-configured questionnaire flows. Staff manage the whole store from /admin.
$cat storefront.txt
Customers browse and search a database-backed catalog, filter by category, and read platform, region, delivery method, warranty and activation instructions on every product. Variants cover edition, region, duration and platform. A mobile buy bar keeps the purchase path short, and homepage panels and categories are admin-managed data rather than hardcoded sections.
$cat checkout.txt
Cart and buy-now share one checkout. Payment is manual in v1: the admin configures methods, instructions, QR codes and payment windows; the customer submits a screenshot and reference; nothing is delivered until staff verify it. No card data is stored.
$cat fulfillment.txt
Keys and codes come from encrypted digital inventory and are revealed through access-controlled routes. Manual services use admin-owned questionnaires: payment approval moves the order to awaiting_answers, answers are validated against the active version, then the order moves to processing — or to staff review. Answers and delivered secrets are encrypted and audited.
$cat data.txt
One driver layer selects node:sqlite locally or a pg pool in production. Both expose all/get/run/tx, queries use positional ? placeholders that Postgres rewrites to $1..$n, and every migration is plain SQL that must run on both engines. Prices are stored in BDT; per-USD rates derive every other enabled currency.
~/projects/dazzling-dunes $
ls -l features/
catalog
8 product types · platform / region / delivery / warranty / activation · variants for edition, region, duration
pricing
BDT base currency · per-USD rates · markup + rounding · USD accounting on orders
payments
Manual methods · private proof uploads · staff verification · no card data
fulfillment
Encrypted inventory · access-controlled credential reveals · versioned questionnaires
lifecycle
Orders · replacements · refunds · warranty claims · support threads
admin
Products / variants / media / inventory · currencies · payments · team roles · audit log
~/projects/dazzling-dunes $
cat stack.yaml
runtime
Next.js 16 App Router · React 19 · TypeScript
styling
Tailwind CSS v4 · design tokens in @theme (warm-noir storefront, paper admin)
data
node:sqlite (dev) · Postgres 16 (prod) · plain-SQL migrations · transactional writes
auth
NextAuth 4 · password + Google · staff roles and permissions
secrets
Encrypted delivery secrets (SECRETS_KEY) · private proof storage outside public/
ops
Docker Compose (web + Postgres) · GitHub Actions deploy on push · Cloudflare + Caddy
quality
Vitest + Testing Library · ESLint · tsc --noEmit · /api/health
~/projects/dazzling-dunes $
git log --oneline
#1a7c9e2feat/catalog
Database-backed catalog with variants
Next.js 16 · React 19 · SQLite/Postgres
- Product types: game keys, accounts and offline activation, activation services, subscription codes and accounts, gift cards, in-game currency.
- Every row carries platform, region, delivery method, warranty and activation steps; variants handle edition, region, duration and platform.
- Storefront reads go through one catalog module; the static arrays exist only as seed source.
#2b8d0f3feat/checkout
Cart, buy-now and manual payment checkout
React 19 · server actions · private proof storage
- Cart and buy-now converge on one checkout; the cart hydration race is fixed so both paths agree.
- The customer submits a payment screenshot and reference; the order waits for staff verification before anything is released.
- No card data is stored — v1 is manual payments only.
#3c9e104feat/admin
Admin console for the whole store
Next.js App Router · role checks · audit log
- Products, variants, media and encrypted inventory; categories and homepage panels are admin-owned data too.
- Orders, payments, replacements, refunds, warranty claims and support threads live in one shell.
- Team roles and an audit log record who changed what.
#4daf215feat/currency
BDT base currency and multi-currency pricing
TypeScript · currency service · admin settings
- Prices are entered and stored in Taka; every other enabled currency derives from per-USD rates the admin edits.
- USD accounting stays on orders (subtotal_usd_cents, fx_rate), and settings.base_currency can point the store back at USD without a migration.
- Rounding, markup and manual overrides are admin settings, not code.
#5eb0326harden/security
Hardened rate limiting, order release and proofs
proxy trust · private routes · SECRETS_KEY
- Rate limits keyed on the real client address behind a trusted proxy, with proofs kept private and served through authenticated routes.
- Order release and admin access are re-checked server-side; delivered secrets are encrypted at rest.
- Security headers, /api/health and a deploy gate added before launch.
#6fc1437ops/deploy
Docker Compose stack, live at dazzlingdunes.com
Docker Compose · Postgres 16 · GitHub Actions · Cloudflare + Caddy
- web container (Next.js on 3000) plus db container (Postgres 16), with volumes for data and private proofs.
- Pushing to master triggers GitHub Actions: SSH to the VPS, hard reset the checkout, rebuild the image, restart the stack.
- Cloudflare and Caddy terminate TLS in front; APP_URL drives notification links.