Karma is a Next.js App Router scaffold for mentorship bookings where checkout fees are transferred to NGO Stripe connected accounts, then Zoom meetings are created after payment.
app/
actions/payments.ts
api/webhooks/stripe/route.ts
dashboard/mentee/page.tsx
dashboard/mentor/page.tsx
components/
dashboard/session-card.tsx
lib/
demo-template.ts
email.ts
env.ts
generated/prisma/
prisma.ts
stripe.ts
supabase/server.ts
zoom.ts
prisma/
schema.prisma- Copy
.env.exampleto.env. - Fill Supabase, Stripe, Zoom, and email credentials.
- Run
npm install. - Run
npm run prisma:migrate. - Start the app with
npm run dev.
Stripe webhooks should point to:
https://your-domain.com/api/webhooks/stripeThe webhook listens for checkout.session.completed, marks the Karma session paid, creates the Zoom meeting, stores the Zoom URLs, and sends confirmation emails.
Local dashboards fall back to a one-mentor/one-mentee demo template until Supabase Auth is configured.