614 B
614 B
POS-006 — Architect
Feature
POS Phase 1 ticket 006: apps/pos Next.js application skeleton.
Objetivo
Create the apps/pos Next.js app with: package.json, next.config.ts, tsconfig.json, Tailwind, root layout, auth login page, API proxy route, middleware, POS API client, permissions, money utils, idempotency utils, terminal page shell.
Diseño
- Next.js 15 App Router; route groups (auth) and (terminal)
- Middleware enforces session cookie; redirects to /login if absent
- API proxy:
/api/[...path]proxies to backend preserving cookies + terminal header - No server-side DB; all data via API