Files
co-lite/solvway-admin-portal
ngqileandClaude Opus 5.5 d2560c6b8a fix: address the admin-password branch review
Create shows a link back to Users when the user was saved but the password
was not stored. The spec's secure-generator rule now names admin temporary
passwords only, and the reset requirement no longer implies the emailed reset
refuses the caller's own account. The design and handover note that mobile-api
must stay the only gateway client allowed to reach /user/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-30 11:27:40 +08:00
..

Co-Lite Admin Portal

Next.js 16 admin portal for Co-Lite. Screens call the JSON admin APIs (/api/admin/**) in mobile-api through server-side route handlers.

Run

Needs Node 24 (see .nvmrc).

cp .env.example .env.local   # then fill in the values below
npm ci
npm run dev                  # http://localhost:3001
Variable Purpose
MOBILE_API_BASE_URL Base URL of mobile-api
MOBILE_API_KEY API key sent to mobile-api
SESSION_SECRET Secret used to seal the session cookie
SESSION_COOKIE_NAME Session cookie base name (default colite_admin)

Scripts

  • npm run build / npm start production build and server (port 3001)
  • npm run lint
  • npm test