Skip to content

RamanRed/Local-EHR

Repository files navigation

SarvaVaidya Monorepo

Healthcare workflow platform with:

  • Web app (React + Vite)
  • API server (Express + Prisma)
  • Shared types package

Repository Structure

  • apps/web — Frontend (doctor / nurse / patient portals)
  • apps/server — Backend API, Prisma schema, business logic
  • packages/shared-types — Shared TypeScript types across apps

Prerequisites

  • Node.js 20+
  • pnpm 10+
  • Python 3.10+ (only needed for optional local speech-to-text fallback)

Setup

  1. Go to the workspace root:
  • project root directory
  1. Install dependencies:
    • pnpm install
  2. Configure environment files:
    • Copy apps/server/.env.example to apps/server/.env
    • Copy apps/web/.env.example (if needed) to apps/web/.env

Run in Development

From project root:

  • Start web + server together:
    • pnpm dev
  • Start only server:
    • pnpm run dev:server
  • Start only web:
    • pnpm run dev:web

Default URLs:

  • Web: http://localhost:5173
  • API: http://localhost:3001
  • Swagger docs: http://localhost:3001/docs

Database (Server)

From apps/server:

  • Generate Prisma client:
    • pnpm db:generate
  • Apply schema (dev):
    • pnpm db:push
  • Run migrations:
    • pnpm db:migrate
  • Seed data:
    • pnpm db:seed

Build

From project root:

  • Build web app:
    • pnpm build

Notes

  • The frontend proxies /api calls to http://localhost:3001.
  • If you see /api/* errors from the web app, ensure the server is running.
  • Some AI features depend on optional external/local services (Gemini, Ollama, Pinecone), configured via apps/server/.env.

About

makeing a doctor practo assitance for easy of use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors