This is a comprehensive, integrated SaaS platform for a therapy clinic, built with Next.js, Prisma, NextAuth, and Stripe/Razorpay integrations.
- Next.js 15 (App Router) for a modern, performant web experience.
- Authentication via NextAuth.js (Next-Auth v5) with Credentials provider and Prisma Adapter.
- Database management with Prisma ORM and PostgreSQL.
- Payments integration with both Stripe and Razorpay.
- Styling with Tailwind CSS and Framer Motion for a polished UI.
- Content Management through local JSON files.
-
Clone the repository:
git clone <your-repo-url> cd oku-therapy-integrated
-
Install dependencies:
npm install
-
Set up environment variables: Copy
.envand fill in the values for:AUTH_SECRET: Random string for NextAuth.DATABASE_URL: PostgreSQL connection string.STRIPE_SECRET_KEY&STRIPE_WEBHOOK_SECRET.RAZORPAY_KEY_ID,RAZORPAY_KEY_SECRET&RAZORPAY_WEBHOOK_SECRET.
-
Database Migration:
npx prisma generate npx prisma db push
-
Run in development mode:
npm run dev
- Push your code to GitHub.
- Import the project into Vercel.
- Add the environment variables in the Vercel dashboard.
- Vercel will automatically run the
buildscript (prisma generate && next build).
This project uses Prisma with PostgreSQL. Ensure you have a PostgreSQL instance (e.g., from Vercel Postgres, Supabase, or Neon) and provide the DATABASE_URL during deployment.