Back to projects
Desktop Application (Electron)

Dr. Irshad Ali Hospital Management System

A full-stack Hospital Management System built for Dr. Irshad Ali Hospital to streamline patient management, billing, medicine inventory, laboratory operations, and financial tracking. Developed as an Electron desktop application with React, Node.js, Express.js, and NeDB, providing secure authentication, responsive workflows, printable documents, and centralized hospital administration.

React 18ViteElectronNode.jsExpress.jsNeDBJWTPassport.jsAxiosCSS3NodemailerESLint
RepositoryDesktop install only

Overview

Dr. Irshad Ali Hospital Management System is a desktop-first Hospital ERP developed to digitize and simplify daily hospital operations. The application centralizes patient management, billing, pharmacy inventory, laboratory records, financial tracking, and administration into a single system, replacing manual paperwork with a secure and efficient digital workflow.

Problem

Small and medium-sized hospitals often rely on paper records or disconnected spreadsheets to manage patients, invoices, medicines, laboratory reports, and financial transactions. This leads to duplicated work, inefficient reporting, inventory management challenges, and increased administrative overhead.

Solution

Built a full-stack desktop Hospital Management System that combines patient registration, invoicing, medicine inventory, laboratory management, expense tracking, income tracking, and administrator controls into one integrated application. The system includes secure authentication, responsive interfaces, printable invoices, and centralized data management to improve operational efficiency.

Architecture

Application Type Desktop Application (Electron) Frontend • React 18 • Vite • Axios • CSS3 Backend • Node.js • Express.js • RESTful API • JWT Authentication • Passport.js Database • NeDB (Embedded File-based Database) Architecture Flow Electron Desktop │ ▼ React Frontend │ ▼ Express REST API │ ▼ NeDB Database

Database Design

The application uses NeDB as an embedded document-oriented database. Data is organized into separate collections for patients, invoices, medicines, laboratory tests, expenses, income records, and users. The lightweight file-based architecture simplifies deployment while providing efficient CRUD operations for desktop environments.

API Design

RESTful API organized by business modules. Modules • Authentication • Patient Management • Invoice Management • Medicine Management • Laboratory Management • Expense Management • Income Management • User Administration Security • JWT Authentication • Protected API Routes • Passport.js Authentication Strategy

Results

  • Developed a complete desktop Hospital Management System for real-world hospital operations.
  • Centralized patient
  • billing
  • laboratory
  • pharmacy
  • and financial management.
  • Implemented secure JWT-based authentication and administrator access control.
  • Built responsive React interfaces for efficient hospital staff workflows.
  • Integrated printable invoices and operational reports.
  • Implemented medicine inventory management with expiration tracking.
  • Designed modular REST APIs for future scalability.
  • Created a lightweight desktop solution using Electron and NeDB without requiring a dedicated database server.

Lessons Learned

  • Designed and developed a production-scale desktop business application.
  • Improved full-stack architecture skills using React
  • Express.js
  • and Electron.
  • Learned to design modular REST APIs for maintainability.
  • Gained practical experience building desktop software with Electron.
  • Applied secure authentication using JWT and Passport.js.
  • Designed efficient document-based data models using NeDB.
  • Built reusable frontend components for better scalability.
  • Learned how to develop a lightweight desktop application that requires minimal deployment infrastructure.