Skip to main content

Web App Overview

  • Next.js 15 app in apps/web.
  • UI: react-bootstrap, bootstrap 5.
  • Data/Auth: Firebase Auth + Firestore.

Key Pieces

  • Auth context: src/context/AuthContext.js (sets firebase-token cookie for middleware)
  • Middleware: apps/web/middleware.js for route protection/redirects
  • Protected routes: /, /posts, /company-posts, /settings, /admin
  • API route: POST /api/linkedin-webhook forwards to n8n
  • Hooks: see src/hooks/* for pagination and data fetching helpers
  • Tests: example in src/app/posts/page.test.js using Jest + Testing Library