A modern, full-stack platform for booking, managing, and monetizing doctor appointments. Built with Next.js, Clerk authentication, and a robust credit-based system for patients and doctors
- User Roles: Patient, Doctor, Admin, Unassigned (Onboarding)
- Authentication: Secure sign-in/sign-up with Clerk
- Credit System: Patients purchase credits to book appointments; doctors earn credits for completed appointments
- Subscription Plans: Free, Standard, Premium (powered by Clerk Billing)
- Payouts: Doctors can request payouts via PayPal
- Admin Dashboard: Manage users, credits, and payouts
- Responsive UI: Stylish, mobile-friendly design with modern UI components
- Notifications: Real-time feedback for actions and errors
- Frontend: Next.js , Tailwind CSS , ShadcnUI
- Backend: Next.js API routes, Prisma ORM
- Auth & Billing: Clerk
- Database: PostgreSQL (or your preferred DB)
- Payments: Clerk Commerce, PayPal (for doctor payouts)
- Icons & UI: Lucide, Shadcn/UI
git clone https://github.com/your-username/Apothecary.git
cd Apothecarynpm install
# or
yarn installCopy .env.example to .env.local and fill in your Clerk, database, and PayPal credentials.
cp .env.example .env.localnpx prisma migrate devnpm run dev
# or
yarn devVisit http://localhost:3000 to view the app.
/components # Reusable React components (UI, Header, Pricing, etc.)
/actions # Server actions for credits, payouts, etc.
/pages or /app # Next.js pages or app router
/prisma # Prisma schema and migrations
/public # Static assets (logo, images)
/styles # Tailwind and global styles
- Plans & Pricing: Edit plans in Clerk dashboard and update
PLAN_CREDITSin/actions/credits.js - UI Theme: Customize Tailwind config and component styles
- Payout Logic: Adjust payout calculations in
/actions/payout.js
Questions? Suggestions?
Open an issue or reach out at gamerhmv2050@gmail.com.


