The Next-Gen Dental Platform with AI-Powered Voice Assistance
Features • Tech Stack • Getting Started • Env Setup • Author
DentalHub is a cutting-edge full-stack telemedicine application tailored for the dental industry. It bridges the gap between patients and dental care providers through intelligent automation and a seamless user experience.
At its core, DentalHub integrates a powerful AI Voice Agent (powered by Vapi) that acts as a first-line dental assistant, answering patient queries instantly. The platform also features a robust appointment booking system, secure payments, and a dedicated admin dashboard, making it a complete solution for modern dental practices.
- Interactive AI Voice Agent: Talk directly to the AI assistant for dental advice, priced estimations, and general queries (Powered by Vapi).
- Intelligent Prompts: Custom-engineered system prompts to ensure accurate and safe dental advice.
- 3-Step Booking Flow: Streamlined experience: Select Dentist → Choose Service & Time → Confirm.
- Real-Time Availability: Prevents double-booking and manages doctor schedules efficiently.
- Email Notifications: Automated confirmation emails sent via Resend immediately after booking.
- Admin Dashboard: Comprehensive view for clinics to manage upcoming appointments and patient records.
- Robust Authentication: Powered by Clerk. Supports Google, GitHub, and legacy Email/Password logins.
- Email Verification: Secure 6-digit OTP verification for new accounts.
- Subscription Models: Tiered access (Free, Pro, Enterprise) managed via Clerk and Stripe integration patterns.
- Smart Upgrades: Prorated billing logic for seamless plan upgrades.
- Automatic Invoicing: Invoices generated and sent instantly to patients.
- Responsive Design: Mobile-first approach using Tailwind CSS.
- Component Library: High-quality, accessible components built with Shadcn UI.
- Visuals: Rich gradients, glassmorphism effects, and smooth transitions driven by Framer Motion equivalents.
- Framework: Next.js 15 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS v4
- Components: Shadcn UI / Radix UI
- Icons: Lucide React
- Server: Next.js Server Actions & API Routes
- Database: PostgreSQL
- ORM: Prisma
- Caching/State: TanStack Query
Create a .env file in the root directory and add the following keys:
# Authentication (Clerk)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
CLERK_SECRET_KEY=sk_test_...
# Database (PostgreSQL)
DATABASE_URL="postgresql://user:password@host:5432/dbname"
# AI Voice Agent (Vapi)
NEXT_PUBLIC_VAPI_ASSISTANT_ID=your_vapi_assistant_id
NEXT_PUBLIC_VAPI_API_KEY=your_vapi_public_key
# Admin Configuration
ADMIN_EMAIL=admin@dentalhub.com
# Email Services (Resend)
RESEND_API_KEY=re_123...
# App URL (For links and redirects)
NEXT_PUBLIC_APP_URL=http://localhost:3000Follow these steps to set up the project locally.
- Node.js (v18 or higher)
- npm or yarn
- PostgreSQL installed locally or a cloud database URL
-
Clone the repository
git clone https://github.com/shivsin25/DENTAL_HUB.git cd DENTAL_HUB -
Install dependencies
npm install # or yarn install -
Setup Database Ensure your
.envfile has the correctDATABASE_URL, then run:npx prisma generate npx prisma db push
-
Run the development server
npm run dev
-
Open the app Visit http://localhost:3000 in your browser.
Shivendra Singh
- GitHub: @shivsin25
This project is proprietary and created by Shivendra Singh.
