Skip to content
GramSehat

GramSehat

Telemedicine access platform in Rural India

Created on 29th December 2025

β€’

GramSehat

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

image

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)

Best Innovation

GramSehat innovates by bringing secure, end-to-end digital healthcare to underserved and rural communities in a single u...Read More

Discussion

Builders also viewed

See more projects on Devfolio