This project is a full-stack application built as part of the Zealthy engineering exercise.
It includes:
- Mini EMR (Admin) → Manage patients, appointments, prescriptions
- Patient Portal → Patients view upcoming appointments and medication refills
- Next.js (App Router)
- TypeScript
- Prisma ORM
- PostgreSQL
- View all patients
- Create new patients
- Edit patient info
- Manage appointments (CRUD)
- Manage prescriptions (CRUD)
- Login with email/password
- Dashboard summary (next 7 days)
- View appointments (3 months)
- View prescriptions (3 months)
src/app/ page.tsx # Login portal/ # Patient Portal admin/ # EMR
src/lib/ db.ts # Prisma client auth.ts # Session handling portal.ts # Recurrence logic
prisma/ schema.prisma seed.ts
pnpm install
Create a .env file:
DATABASE_URL="postgresql://..."
pnpm prisma migrate dev pnpm prisma db seed
pnpm dev
-
Push repo to GitHub
-
Import into Vercel
-
Add environment variable: DATABASE_URL=your_production_db
-
Run: pnpm prisma migrate deploy pnpm prisma db seed
- Authentication is intentionally simple (no auth for admin)
- Passwords are hashed using bcrypt
- Recurring schedules support:
- none
- weekly
- monthly
Provide:
- GitHub repo URL : https://github.com/JoeHancock1995/Zealthy
- Live deployed URL (Vercel): https://zealthy-pi.vercel.app/
Joe Hancock