Web App (Next.js)
Quick links: Frontend • Backend
Frontend
- Next.js App Router app in
apps/webwith React Query, Zustand, and Context for auth. - Auth: Firebase client auth with passwordless email link and Google provider.
- Pages are thin and call hooks/services; UI lives under
src/componentsand features undersrc/features.
Related backend: see Backend
Backend
src/app/api/**route handlers implement server-only functionality (Stripe, cookies, shims).- Session:
/api/auth/sessionmints__sessionvia Admin SDK;src/middleware.jsprotects routes. - Webhooks: Stripe events are handled by the Firebase Function
stripeWebhook(Cloud Functions URL).
Related frontend: see Frontend