Skip to content

AJKakarot/SehatLink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

44 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฉบ SehatLink

Healthcare when it matters most โ€” A full-stack telemedicine platform for booking doctor appointments, video consultations, and AI-assisted symptom checking.

Next.js Prisma Clerk Vonage


๐Ÿ“– Overview

SehatLink is a modern doctor appointment and telemedicine platform built for patients, doctors, and admins. It supports appointment booking, HD video calls via Vonage for telemedicine, AI-powered symptom guidance, nearby and curated care, and a credit-based pricing model.


โœจ Features

Category Description
๐Ÿ” Authentication Sign-in/sign-up with Clerk โ€” email, social logins, and protected routes
๐Ÿ“… Appointments Book, view, and manage consultations by specialty, doctor profile, and time slots
๐Ÿ“ž Video Calls Vonage Video API (Opentok) for real-time, secure telemedicine consultations from the browser
๐Ÿ“ Nearby & Curated Care Find doctors by location and get AI-curated recommendations
๐Ÿค– Symptom Checker Gemini AIโ€“driven symptom guidance to help users decide when to see a doctor
๐Ÿ’ณ Credits & Pricing Credit-based consultation packages and transparent pricing
๐Ÿ‘จโ€โš•๏ธ Doctor Dashboard Availability, earnings, appointments, and verification workflows
๐Ÿ›ก๏ธ Admin Verify doctors, manage payouts, and oversee the platform
๐ŸŽจ UI Responsive, accessible interface with Tailwind CSS and shadcn/ui
๐Ÿ—„๏ธ Data Neon PostgreSQL + Prisma for secure, scalable storage

๐Ÿ› ๏ธ Tech Stack

Layer Technologies
Framework Next.js 15 (App Router, React Server Components)
Styling Tailwind CSS 4, shadcn/ui, Framer Motion
Database Neon PostgreSQL, Prisma ORM
Auth Clerk
Video Vonage Video API (Opentok) โ€” @vonage/server-sdk, @vonage/video, opentok
AI Google Gemini API (symptom checker)
Deploy Vercel

โ˜๏ธ Google Cloud Technologies Used

SehatLink leverages Google Cloud Platform (GCP) services to ensure scalability, security, reliability, and AI-powered healthcare experiences.

๐Ÿ”น Core Google Cloud Services

Service Usage
Google Cloud Run Containerized backend services for scalable APIs and background jobs
Google Cloud Functions Serverless execution for event-driven workflows (notifications, triggers)
Google Cloud Load Balancer High availability and traffic distribution
Google Cloud IAM Secure access control and role-based permissions
Google Cloud Secret Manager Secure storage of API keys, database credentials, and secrets
Google Cloud Logging & Monitoring Observability, performance tracking, and error monitoring
Google Cloud Storage Secure storage for medical reports, prescriptions, and user uploads

๐Ÿค– AI & ML on Google Cloud

Service Usage
Google Gemini API (via Google AI Studio) AI-powered symptom checker and health guidance
Vertex AI (optional extension) Future-ready ML pipelines for diagnosis prediction and patient insights
Natural Language Processing (NLP) Symptom understanding and intent classification
Recommendation Models AI-curated doctor and care recommendations

๐Ÿ” Security & Compliance (Healthcare-Ready)

  • End-to-end encryption for video consultations and sensitive data
  • IAM-based least privilege access
  • HIPAA-aligned architecture (design-ready)
  • Audit logs via Google Cloud Logging
  • Secure API access using Google Cloud IAM & Secret Manager

๐ŸŒ Deployment Architecture (Hybrid Cloud)

Layer Platform
Frontend Vercel (Next.js 15)
Backend APIs Google Cloud Run
Serverless Jobs Google Cloud Functions
Database Neon PostgreSQL
AI Services Google Gemini (Google Cloud)
Media & Assets Google Cloud Storage
Video Calls Vonage Video API

๐Ÿง  Why Google Cloud for SehatLink?

  • ๐Ÿš€ Auto-scaling for sudden healthcare demand
  • ๐Ÿ”’ Enterprise-grade security for sensitive medical data
  • ๐Ÿค– Best-in-class AI via Gemini & Vertex AI
  • ๐ŸŒ Global low-latency infrastructure
  • ๐Ÿ’ก Cost-efficient serverless architecture

๐Ÿ”ฎ Future Roadmap (Google Cloud)

  • AI-driven early disease detection models (Vertex AI)
  • FHIR-compliant healthcare data interoperability
  • Real-time health analytics dashboards
  • Multi-language AI symptom checking
  • Predictive queue & appointment optimization using ML

๐Ÿ“ Project Structure

SehatLink/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ (auth)/          # Sign-in, sign-up
โ”‚   โ”œโ”€โ”€ (main)/          # Main app routes
โ”‚   โ”‚   โ”œโ”€โ”€ admin/       # Admin dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ appointments/
โ”‚   โ”‚   โ”œโ”€โ”€ curated-care/
โ”‚   โ”‚   โ”œโ”€โ”€ doctor/      # Doctor dashboard & verification
โ”‚   โ”‚   โ”œโ”€โ”€ doctors/     # Browse & book by specialty
โ”‚   โ”‚   โ”œโ”€โ”€ nearby-care/
โ”‚   โ”‚   โ”œโ”€โ”€ onboarding/
โ”‚   โ”‚   โ”œโ”€โ”€ pricing/
โ”‚   โ”‚   โ”œโ”€โ”€ symptom-checker/
โ”‚   โ”‚   โ””โ”€โ”€ video-call/  # Vonage video call UI
โ”‚   โ”œโ”€โ”€ api/             # API routes (search, symptom-checker, etc.)
โ”‚   โ””โ”€โ”€ layout.js, globals.css
โ”œโ”€โ”€ actions/             # Server actions (appointments, credits, doctor, etc.)
โ”œโ”€โ”€ components/          # Shared UI (header, pricing, symptom-checker, etc.)
โ”œโ”€โ”€ lib/                 # Prisma client, utils, schemas, prompts
โ”œโ”€โ”€ prisma/              # Schema, migrations, seed
โ””โ”€โ”€ public/

๐Ÿš€ Getting Started

Prerequisites

1. Clone and install

git clone https://github.com/your-username/sehatlink.git
cd sehatlink
npm install

2. Environment variables

Create a .env file in the project root and add:

# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/onboarding
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/onboarding

# Vonage Video (for telemedicine)
NEXT_PUBLIC_VONAGE_APPLICATION_ID=
VONAGE_PRIVATE_KEY=lib/private.key   # path to your Vonage private key file

# Database (Neon)
DATABASE_URL="postgresql://..."

# Gemini (symptom checker)
GEMINI_API_KEY=

Get Vonage credentials and a private key from the Vonage Video API dashboard; place the key file at lib/private.key or update VONAGE_PRIVATE_KEY accordingly.

3. Database setup

npx prisma generate
npx prisma migrate deploy
npm run db:seed

4. Run the app

npm run dev

Open http://localhost:3000.


๐Ÿ“œ Scripts

Command Description
npm run dev Start dev server (Turbopack)
npm run build Production build
npm run start Start production server
npm run lint Run ESLint
npm run db:seed Seed database

๐Ÿ‘ฉโ€๐Ÿ’ป Team

Name Role
Ajeet Full Stack Developer
Alok Backend Engineer

๐Ÿ“„ License

This project is private. All rights reserved.


Built with Next.js, Prisma, Neon, Clerk, Vonage, and Google Gemini โ€” for healthcare thatโ€™s simple and reliable.

About

live link

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors