ACTUDE Local Build

Distribution control, leadership visibility, and disciplined execution in one local-first stack.

This workspace is structured for local development first with role separation, Prisma-backed operations, approval-led onboarding, referral tracking, orders, delivery coordination, System Credit tracking, campaigns, and leadership recognition.

Phase 1 ready

Auth, approval workflow, Prisma schema, dashboards, and modular server actions are wired.

Local-first storage

Campaign media is stored under workspace-managed local storage and streamed by the app.

Production-shaped

Environment variables, audit logs, role guards, and modular domains are ready for later remote deployment.

Seeded routes

After migration and seed, these routes are immediately useful for local validation.

  • `/login` for seeded admin, OTOY, and distributor accounts
  • `/register` for pending distributor applications using any valid email
  • `/admin/applications` for UDE approval review
  • `/dashboard` for distributor operations and commissions
  • `/p?ref=UDE000001` for referral click tracking and lead capture
  • `/executive` for OTOY messaging and recognition flows

Local commands

Use the documented local path from blank repo to running app.

npm install
npm run db:generate
npm run db:migrate
npm run db:seed
npm run dev