How gomolemo-k/founderfinder works
Project type and purpose
• This is a full-stack SaaS starter built with Next.js 13’s App Router. It provides a marketing site (landing & pricing), authentication (sign-in/up, JWT cookies), payment integration (Stripe Checkout & webhooks), and a protected dashboard exposing CRUD on teams/users with RBAC and activity logging.
File structure
• Top-level “app/” directory:
• (login) segment handles sign-in & sign-up pages and actions.ts for server actions.
• (dashboard) segment contains layout.tsx, nested dashboard sub-routes (activity, general, security, pricing).
• app/api/stripe, app/api/team, app/api/user: serverless API routes.
• “components/ui/”: shared UI primitives (button, card, input, etc.).
• “lib/”:
• lib/auth: JWT session handling and middleware.
• lib/db: Drizzle ORM setup, migrations, queries, seeding.
• lib/payments: Stripe integration functions.
• lib/utils: helpers.
• Configuration & infra: Docker Compose, drizzle.config.ts, next.config.js, open-next.config.ts, wrangler.jsonc (for Cloudflare Workers), GitHub Actions deploy.yml.
README for additional insights
• Confirms tech stack: Next.js, Postgres, Drizzle ORM, Stripe, shadcn/ui.
• Describes key features: marketing pages, Stripe Checkout & Customer Portal, dashboard with CRUD, RBAC, JWT auth, middleware protection, activity logs.
• Outlines local dev (db setup/migrate/seed), Stripe CLI for webhooks, deployment to Vercel/Cloudflare with env vars.