RezinaLMS-CustomerEnd/README.md
n3p-tun3 9ccd21584f fix(build): use the real API by default so the CI build works
The CI server runs a plain `next build` in apps/demo; it never reads vercel.json, so
`app:build` and its API URL were skipped. With no URL the app fell back to the demo data
source, which only works inside the hosted artifact sandbox, and rezina.yaltopia.com
showed "0 courses".

- the API URL is now the default in apps/demo/app/page.tsx; any plain build uses it
- NEXT_PUBLIC_LMS_API still overrides it (e.g. staging); set empty, it keeps demo data
- `demo:build` sets it empty: the artifact sandbox can't reach outside servers
  (artifact check: no network attempts)
- `app:build` is now just the plain build; README updated
2026-11-03 17:35:11 +03:00

2.8 KiB
Raw Blame History

RezinaLMS — Customer End

The student-facing side of the MakeUp Academy e-learning platform. This repo has no admin screens.

Video courses for makeup artists in Amharic, Afaan Oromoo, Tigrinya and English. Students pay once per course (Telebirr / CBE Birr through ArifPay) and keep it for life.

Waitlist page: apps/demo/public/waitlist/index.html (name, email, phone) is served at /waitlist/ on Vercel. Signups go to a Google Sheet through tools/waitlist-apps-script.gs, which has the setup steps in its header. Paste the web app URL into ENDPOINT in the page before sharing it. While ENDPOINT is empty, signups stay in the visitor's browser.

Layout

Path What
apps/demo Next.js 15 static export, inlined into one HTML file and published as the Claude artifact (SPEC §18)
packages/features All student screens, plus domain.ts (payments, access, progress, dashboard rules)
packages/data DataSource interface + ClaudeDbDataSource. Production adds ApiDataSource
packages/i18n Message catalogs. om and ti are drafts that need a translator
packages/db/seed Demo seed (fictional sample students are marked isSample)
tools/ artifact-inline, artifact-check, i18n-check, and preview/ (local runtime mock + click-everything smoke test)

Commands

npx -y pnpm@9 install
npx -y pnpm@9 run demo:build   # next build → dist/demo.html → offline network check
npx -y pnpm@9 test             # domain rules (payments, entitlement, progress, dashboard)
npx -y pnpm@9 run i18n:check   # every locale has every key
node tools/waitlist-check.mjs  # waitlist Apps Script: validation, dedupe, formula-injection guard

Builds: a plain build (next build, app:build, the CI server, Vercel) talks to the real API, https://api.rezina.yaltopia.com, the default in apps/demo/app/page.tsx. Point it elsewhere (e.g. staging) with NEXT_PUBLIC_LMS_API=<url>. demo:build sets it empty and keeps demo data: it feeds the hosted artifact demo, whose sandbox can't reach outside servers. To preview the old in-memory demo, build with NEXT_PUBLIC_LMS_API= npx -y pnpm@9 --filter demo build && node tools/vercel-build.mjs. Deploy to Vercel with npx vercel deploy --prod.

Phases 1–3 (Fastify API, Postgres, ArifPay, R2 video) haven't started yet. They wait on decisions D1, D2 and D8 in SPEC §17.