Skip to main content

Web App (Next.js)

Quick links: FrontendBackend

Frontend

  • Next.js App Router app in apps/web with 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/components and features under src/features.

Related backend: see Backend

Backend

  • src/app/api/** route handlers implement server-only functionality (Stripe, cookies, shims).
  • Session: /api/auth/session mints __session via Admin SDK; src/middleware.js protects routes.
  • Webhooks: Stripe events are handled by the Firebase Function stripeWebhook (Cloud Functions URL).

Related frontend: see Frontend