PrakrutiHealthResort
Prakruti Health Resort was losing time and trust to booking conflicts. I rebuilt the booking engine so two guests can never be assigned the same room, then built the day-to-day operations dashboard staff actually use.
Case Study
My Role
Full-stack across the backend and the admin panel.
Booking Engine — the hardest problem
Replaced the old room-slot system with a proper booking engine: dedicated room types, pricing, and occupancy modes, backed by a room-assignment service with retry logic to prevent race conditions. Room holds are transactional with a 15-minute expiry, so two guests can never land the same room. Layered on top: gender-based and membership-based room constraints, same-room assignment for multi-guest orders, and a member-days system for room-upgrade payments with dedicated deduction tracking for caretakers.
Room Operations & Performance
Built the check-in/check-out flow, room change and upgrade logic (including same-rank upgrades for occupancy changes), and a daily room-status endpoint. On performance, added database indexes to cut redundant queries, parallelized data fetches, and optimized read paths.
Admin Panel — Room Dashboard
A calendar and timeline view with interactive room cards showing live occupancy, check-in/check-out state, and in-house guests — including shared-room support and status-based color coding, wired to real booking data via the API.
Orders & Reports
Built the full order-reporting flow: cancelled-order handling, payment-link generation over email and WhatsApp, an invoice modal, and PDF receipt downloads.
Appointments & Dashboard
Role-based dashboard views (doctors vs. non-doctors), a cash-metrics dashboard, appointment notes with inline editing, lab-investigation display, and consultation-report PDF generation.
Other Modules
Coupon management with full CRUD, membership verification and history tracking, and a real-time data sync listener with automatic reconnection.