GramSehat
Telemedicine access platform in Rural India
Created on 29th December 2025
β’
GramSehat
Telemedicine access platform in Rural India
The problem GramSehat solves
GramSehat - A Secure Doctors Appointment Platform
GramSehat is a secure doctor appointment platform built to streamline the healthcare journey. It allows users to book appointments, consult with doctors via video calls, and manage their health records β all in one place.
π Features
- π Book Doctor Appointments with real-time availability
- π₯ Video Consultations powered by Vonage
- π§ββοΈ Secure Authentication using Clerk
- π³ Subscription Plans using Clerk Subscriptions (Beta)
- π End-to-End Encrypted Communication
- π Clean and Intuitive Dashboard with ShadCN UI & Tailwind CSS
π οΈ Tech Stack
- Frontend: Next.js 14, Tailwind CSS, ShadCN UI
- Backend: Next.js API Routes
- Database: Neon (PostgreSQL)
- ORM: Prisma
- Authentication: Clerk
- Subscription Management: Clerk Subscription Beta
- Video Call API: Vonage
π¦ Installation
# Clone the repository
git clone https://github.com/your-username/gramsehat.git
cd gramsehat
# Install dependencies
npm install
# Copy the env file and configure it
cp .env.example .env.local
# Fill in the values:
# NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=...
# CLERK_SECRET_KEY=...
# NEXT_PUBLIC_CLERK_SIGN_IN_URL=...
# NEXT_PUBLIC_CLERK_SIGN_UP_URL=...
# NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=...
# NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=...
# NEXT_PUBLIC_VONAGE_APPLICATION_ID=...
# VONAGE_PRIVATE_KEY=...
# DATABASE_URL=...
# Push Prisma schema to database
npx prisma db push
# Run the dev server
npm run dev
π Folder Structure
telemedicineweb/
βββ actions/ #server actions
βββ app/ # App router with pages and routes
βββ components/ # UI components
βββ hooks/ # Custom React hooks for reusable logic
βββ lib/ # Utility and config files
βββ prisma/ # Prisma schema
βββ public/ # Static files
βββ .env # Environment variables
βββ package.json
βββ README.md
Database Management
<img src="https://github.com/user-attachments/assets/48665457-09a8-4bc5-832c-b66cf3f78045" width="350" />Built with β€οΈ by GlitchX

Challenges we ran into
One of the main challenges was integrating secure authentication using Clerk with Next.js 14 App Router and server actions. Initially, authentication state was inconsistent across server and client components, causing access and redirect issues. This was resolved by standardizing Clerkβs server-side helpers and enforcing protected routes at the layout level.
Another major hurdle was implementing real-time video consultations using Vonage. We faced issues with session token mismatches and environment variable handling between client and server. By moving session and token generation fully to the backend and adding proper validation, we ensured stable and secure video calls.
Finally, working with Clerk Subscriptions (Beta) and a serverless Neon PostgreSQL database introduced syncing and connection issues. We solved this by explicitly tracking subscription status in Prisma and optimizing database connections. These challenges helped us build a more reliable, secure, and production-ready healthcare platform under hackathon constraints.
Tracks Applied (1)
