Can Claude & Google Sheets Run my Whole Clinic? I Built One to Find Out | 🔥100% FREE CODE GIVEAWAY
A multi-branch clinic system with online booking, a live patient queue, consultations with prescriptions, billing and reports. Get both versions: Google Apps Script on Sheets, and a production Next.js + PostgreSQL app.
- प्रकाशित
- वीडियो की लंबाई6 मि॰
- 2 complete versions
- 4 roles
- Multi-branch
- No double booking
- Live queue
- Prescriptions
- Billing
- QR slips
- Urdu + English
- Docker ready
- 380+ parity tests
फ़ीचर
- Four roles: admin, receptionist, doctor and patient
- Multi-branch: each receptionist works in their own branch
- Public site: find a doctor by specialty, branch and date
- Online booking with free slots generated from doctor schedules
- No double booking, even when two people book the same slot at once
- Doctor weekly schedules per branch with overlap protection
- Doctor leave requests with admin approval that removes booked slots
- Today board and live queue with token numbers per doctor
- Queue display screen for the waiting room
- Consultations with vitals, diagnosis, advice and follow-up date
- Prescriptions with medicines, dose and duration, printable on A5
- Patient records with MRN, allergies, chronic conditions and full history
- Invoices, payments and online-payment verification, with overpayment protection
- Printable appointment slip with QR code, invoices and receipts
- Dashboard: collections, visits by specialty, booking channels, doctor utilisation
- Reports with date range, CSV and Excel export
- Patient CSV import with row-by-row validation
- Email reminders before appointments and OTP password reset
- Notifications, activity log, users and role permissions
- Branding: logo, colours, themes and six menu layouts
- English and Urdu (right-to-left) interface
- Works on phones, tablets and desktops
इस प्रोजेक्ट के बारे में
Mohsin Decodes Clinics runs a clinic with several branches from one web app. Patients find a doctor, pick a free slot and book online. Reception checks them in and calls tokens from a live queue. Doctors see their day, write consultation notes and prescriptions, and print them. The front desk raises invoices, records payments and verifies online transfers, and the owner watches collections, visits and doctor utilisation on the dashboard.
Every rule a real clinic needs is enforced on the server: a doctor slot can never be double-booked, a doctor's weekly schedule can't overlap across branches, approved leave removes slots automatically, and an invoice can never be paid beyond its total. Each role only sees its own data: reception sees its branch, doctors see their own patients, and patients see only their own records.
You get the project twice. The Google Apps Script version runs free on Google Sheets: deploy it in minutes, no server needed. The Next.js version is the same app rebuilt for production: PostgreSQL with Prisma, Better Auth sessions, Docker, automated tests that prove it gives the same results as the Apps Script version, and a security review.
यह किसके लिए है
Developers and clinic owners who want a ready clinic booking system, free on Google Sheets today and ready to move to a real server later.
आप क्या सीखेंगे
- Design a multi-role app with server-side permissions and row-level security
- Prevent double booking with locks (Apps Script) and transactions with unique indexes (PostgreSQL)
- Generate appointment slots from schedules, leaves and existing bookings
- Use Google Sheets as a database: read once, write once, stay inside the 6-minute limit
- Build a single-page web app in Apps Script with HtmlService
- Migrate an Apps Script app to Next.js, Prisma and PostgreSQL without changing its behaviour
- Add Better Auth sessions, email OTP and rate limiting
- Prove two versions behave the same with golden parity tests
- Write end-to-end tests per role with Playwright
- Run the whole stack locally with Docker: Postgres, Mailpit and MinIO
ज़रूरतें
- Apps Script version: a Google account
- Next.js version: Node.js 20+
- Next.js version: pnpm 9+
- Next.js version: Docker Desktop
- Basic JavaScript knowledge
इनसे बना
सेटअप निर्देश
- Apps Script: open script.google.com and create a new project
- Apps Script: paste Code.gs into Code.gs, add an HTML file named index and paste index.html
- Apps Script: Deploy → New deployment → Web app, Execute as: Me, Who has access: Anyone
- Apps Script: open the web app URL; the database spreadsheet is created on first run
- Next.js: unzip the nextjs folder and copy .env.example to .env
- Next.js: run pnpm install
- Next.js: run pnpm db:up to start PostgreSQL, Mailpit and MinIO in Docker
- Next.js: run pnpm prisma migrate reset --force, then pnpm db:seed
- Next.js: run pnpm dev and open http://localhost:3000
- Sign in with the demo accounts listed in GETTING_STARTED.md (password Demo@123)



रिव्यू और कमेंट
रिव्यू और कमेंट
क्या आपने इसे खुद बनाया? अपना अनुभव बताएं या सवाल पूछें।
रिव्यू लिखें