Skip to content

Latest commit

ย 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HMS Banner

Stars Forks Issues PRs Welcome License

Node.js React MongoDB Express TailwindCSS Vite AWS Vercel


๐ŸŒ Live Demo

Public Site
Patient Appointment Booking
Admin Panel
Staff & Management Portal
Details
Full Project Details & Contribution

๐Ÿ’ฌ Feedback is warmly welcomed! Found a bug? Have a feature idea? Open an issue or reach out directly.


๐Ÿ“‹ Table of Contents

Click to expand

โœจ Overview

Hospital Management System (HMS) is a comprehensive, full-stack, open-source healthcare management platform designed to streamline hospital operations. It features role-based access control with dedicated portals for Admins, Receptionists, and Doctors, along with a public-facing site for patients to book appointments online.

๐Ÿฅ One Platform โ€” Three Powerful Portals โ€” Infinite Possibilities
๐ŸŒ Public Site ๐Ÿ” Admin Portal ๐Ÿ‘ฉโ€โš•๏ธ Receptionist Portal ๐Ÿฉบ Doctor Portal
Appointment Booking Full System Control Operations & Billing Clinical Management
Department Browsing User & Role Management Patient Records Appointment Handling
Doctor Discovery Analytics Dashboard Invoice Generation Profile & Availability

๐ŸŽฏ Key Features

๐Ÿ” Authentication & Security

  • โœ… Login via Email or Phone Number
  • โœ… JWT Token-based authentication
  • โœ… Role-Based Access Control (RBAC)
  • โœ… bcrypt password hashing (salt rounds: 10)
  • โœ… Protected routes with automatic role redirection
  • โœ… Helmet.js HTTP security headers
  • โœ… Google reCAPTCHA integration (Public site)

๐Ÿ‘‘ Admin Portal

  • โœ… Dashboard with real-time analytics & charts
  • โœ… Admin / Doctor / Receptionist Management
  • โœ… Department & Service Management
  • โœ… Appointment Control & Slot Configuration
  • โœ… Billing & Custom Invoice Templates
  • โœ… Announcements & Site Updates (CMS)
  • โœ… Support Ticket Management

๐Ÿ‘ฉโ€โš•๏ธ Receptionist Portal

  • โœ… Dashboard with today's appointments & alerts
  • โœ… Create / Confirm / Cancel Appointments
  • โœ… Patient Management & Record Updates
  • โœ… Billing & Invoicing (taxes, discounts)
  • โœ… Slot Management for doctors
  • โœ… Profile Management & Settings

๐Ÿฉบ Doctor Portal

  • โœ… Dashboard with schedule & pending tasks
  • โœ… View Assigned Appointments
  • โœ… Patient History & Records access
  • โœ… Profile Management & Availability
  • โœ… Settings & Preferences
  • โœ… Read-only Billing visibility

๐ŸŒ Public Patient Site

  • โœ… Online Appointment Booking with date & slot selection
  • โœ… Browse Departments and Doctors
  • โœ… Appointment Confirmation page with details
  • โœ… Google reCAPTCHA spam protection
  • โœ… Responsive & mobile-friendly design

๐Ÿ—๏ธ Architecture Diagram

graph TB
    subgraph Frontend["Frontend - Vercel"]
        A["Public Site\nReact + Vite\nhms.gu-saurabh.site"]
        B["Admin Panel\nReact 19 + Vite + Tailwind\nhms-admin.gu-saurabh.site"]
    end

    subgraph Backend["Backend - Node.js Server"]
        C["Express.js API\nREST Endpoints"]
        D["Auth Middleware\nJWT Verification"]
        E["Controllers\nBusiness Logic"]
    end

    subgraph Services["Data and Services"]
        F[("MongoDB Atlas\nDatabase")]
        G["AWS S3\nFile Storage"]
        H["AWS SES\nEmail Service"]
        I["Google reCAPTCHA\nBot Protection"]
    end

    A -->|"API Calls"| C
    B -->|"API Calls"| C
    C --> D
    D --> E
    E --> F
    E --> G
    E --> H
    A --> I

    style A fill:#0d9488,stroke:#0d9488,color:#fff
    style B fill:#6366f1,stroke:#6366f1,color:#fff
    style C fill:#f59e0b,stroke:#f59e0b,color:#fff
    style D fill:#ef4444,stroke:#ef4444,color:#fff
    style E fill:#8b5cf6,stroke:#8b5cf6,color:#fff
    style F fill:#47A248,stroke:#47A248,color:#fff
    style G fill:#FF9900,stroke:#FF9900,color:#fff
    style H fill:#FF9900,stroke:#FF9900,color:#fff
    style I fill:#4285F4,stroke:#4285F4,color:#fff
Loading

๐Ÿ‘ฅ User Role Access Matrix

Feature ๐Ÿ‘‘ Admin ๐Ÿ‘ฉโ€โš•๏ธ Receptionist ๐Ÿฉบ Doctor ๐ŸŒ Public
Dashboard & Analytics โœ… โœ… โœ… โŒ
User Management (CRUD) โœ… โŒ โŒ โŒ
Doctor Management โœ… โŒ โŒ โŒ
Receptionist Management โœ… โŒ โŒ โŒ
Department Management โœ… โŒ โŒ โŒ
Appointment Management โœ… โœ… ๐Ÿ‘๏ธ View โœ… Book
Patient Management โœ… โœ… ๐Ÿ‘๏ธ View โŒ
Billing & Invoicing โœ… โœ… ๐Ÿ‘๏ธ Read-only โŒ
Slot Configuration โœ… โœ… โŒ โŒ
Invoice Template Design โœ… โŒ โŒ โŒ
Announcements (CMS) โœ… โŒ โŒ โŒ
Site Updates (CMS) โœ… โŒ โŒ โŒ
Support Tickets โœ… โŒ โŒ โŒ
Profile Management โœ… โœ… โœ… โŒ
Settings โœ… โœ… โœ… โŒ

๐Ÿ› ๏ธ Tech Stack

Frontend

React Vite Tailwind CSS React Router Recharts

Backend

Node.js Express.js MongoDB Mongoose JWT

Cloud & DevOps

AWS S3 AWS SES Vercel

๐Ÿ“ฆ Full Dependency List
Package Version Purpose
Backend
express 5.x Web framework
mongoose 9.x MongoDB ODM
jsonwebtoken 9.x JWT authentication
bcryptjs 3.x Password hashing
helmet 8.x Security headers
cors 2.x Cross-origin support
morgan 1.x HTTP request logging
multer 2.x File upload handling
@aws-sdk/client-s3 3.x AWS S3 integration
@aws-sdk/client-ses 3.x AWS SES email
axios 1.x HTTP client
dotenv 17.x Environment variables
Admin Panel
react 19.x UI framework
react-router-dom 7.x Client-side routing
recharts 3.x Charts & visualization
lucide-react 0.56x Modern icons
react-icons 5.x Additional icons
react-hot-toast / sonner latest Toast notifications
react-quill-new 3.x Rich text editor
react-easy-crop 5.x Image cropping
qrcode 1.x QR code generation
@headlessui/react 2.x Accessible UI components
tailwindcss 3.x Utility-first CSS
Client Site
react 18.x UI framework
react-router-dom 6.x Client-side routing
react-google-recaptcha 3.x Bot protection
html2pdf.js 0.14 PDF generation

๐Ÿ“ Project Structure

Hospital-Management-System/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“‚ server/                          # โš™๏ธ Backend API (Node.js + Express)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ package.json
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ seed.js                      # ๐ŸŒฑ Database seeding script
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ .env                         # ๐Ÿ”’ Server environment variables
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ src/
โ”‚       โ”œโ”€โ”€ ๐Ÿ“„ app.js                   # Express app configuration
โ”‚       โ”œโ”€โ”€ ๐Ÿ“„ server.js                # Server entry point
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ config/
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ db.js                # MongoDB connection
โ”‚       โ”‚   โ””โ”€โ”€ ๐Ÿ“„ s3.js                # AWS S3 config
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ controllers/             # ๐Ÿ“‹ Route handlers
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ authController.js
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ appointmentController.js
โ”‚       โ”‚   โ””โ”€โ”€ ... more controllers
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ middleware/
โ”‚       โ”‚   โ””โ”€โ”€ ๐Ÿ“„ authMiddleware.js    # ๐Ÿ›ก๏ธ JWT auth middleware
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ models/                  # ๐Ÿƒ Mongoose schemas
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ User.js
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Admin.js
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Doctor.js
โ”‚       โ”‚   โ””โ”€โ”€ ... more models
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ routes/                  # ๐Ÿ›ค๏ธ API route definitions
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ authRoutes.js
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ appointmentRoutes.js
โ”‚       โ”‚   โ””โ”€โ”€ ... more routes
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ services/                # โ˜๏ธ External service integrations
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ awsSesService.js     # Email via AWS SES
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ captchaService.js    # reCAPTCHA verification
โ”‚       โ”‚   โ””โ”€โ”€ ๐Ÿ“„ s3Service.js         # File upload via AWS S3
โ”‚       โ””โ”€โ”€ ๐Ÿ“‚ utils/                   # ๐Ÿ”ง Utility functions
โ”‚
โ”œโ”€โ”€ ๐Ÿ“‚ Admin/                           # ๐Ÿ” Admin Panel (React 19 + Tailwind)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ package.json
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ vite.config.js
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ tailwind.config.js
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ vercel.json
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ .env
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ src/
โ”‚       โ”œโ”€โ”€ ๐Ÿ“„ App.jsx                  # App router & route config
โ”‚       โ”œโ”€โ”€ ๐Ÿ“„ main.jsx                 # Entry point
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ components/              # ๐Ÿงฉ Reusable components
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ProtectedRoute.jsx
โ”‚       โ”‚   โ””โ”€โ”€ ... more components
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ context/
โ”‚       โ”‚   โ””โ”€โ”€ ๐Ÿ“„ AuthContext.jsx      # ๐Ÿ”‘ Auth state management
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ layouts/
โ”‚       โ”‚   โ””โ”€โ”€ ๐Ÿ“„ AdminLayout.jsx      # ๐Ÿ“ Main layout wrapper
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ pages/                   # ๐Ÿ“„ Page components
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Login.jsx
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Dashboard.jsx            # Admin dashboard
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ReceptionistDashboard.jsx
โ”‚       โ”‚   โ””โ”€โ”€ ๐Ÿ“„ *Profile.jsx         # Role-specific profiles
โ”‚       โ”‚   โ””โ”€โ”€ ... more pages
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ services/
โ”‚       โ”‚   โ””โ”€โ”€ ๐Ÿ“„ api.js               # ๐ŸŒ Axios API client
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ styles/
โ”‚       โ”‚   โ””โ”€โ”€ ๐Ÿ“„ action-buttons.css
โ”‚       โ””โ”€โ”€ ๐Ÿ“‚ utils/
โ”‚           โ””โ”€โ”€ ๐Ÿ“„ helpers.js           # ๐Ÿ”ง Utility functions
โ”‚
โ”œโ”€โ”€ ๐Ÿ“‚ Client/                          # ๐ŸŒ Public Patient Site (React 18)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ package.json
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ vite.config.js
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ vercel.json
โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ .env
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ src/
โ”‚       โ”œโ”€โ”€ ๐Ÿ“„ App.jsx
โ”‚       โ”œโ”€โ”€ ๐Ÿ“„ main.jsx
โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ pages/
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ Home.jsx             # Landing page
โ”‚       โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ AppointmentBooking.jsx
โ”‚       โ”‚   โ””โ”€โ”€ ๐Ÿ“„ AppointmentConfirmation.jsx
โ”‚       โ””โ”€โ”€ ๐Ÿ“‚ services/
โ”‚           โ””โ”€โ”€ ๐Ÿ“„ api.js               # ๐ŸŒ API client
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ README.md                        # ๐Ÿ“– You are here!
โ””โ”€โ”€ ๐Ÿ“„ .gitignore

๐Ÿš€ Getting Started

๐Ÿ“‹ Prerequisites

Requirement Minimum Version Recommended
Node.js v18+ v20 LTS
MongoDB v6+ Atlas (Cloud)
npm v9+ Latest
Git v2+ Latest

๐Ÿ“ฅ Installation

1๏ธโƒฃ Clone the Repository

git clone https://github.com/Saurabhtbj1201/Hospital-Management-System.git
cd Hospital-Management-System

2๏ธโƒฃ Install Server Dependencies

cd server
npm install

3๏ธโƒฃ Install Admin Panel Dependencies

cd ../Admin
npm install

4๏ธโƒฃ Install Client Site Dependencies

cd ../Client
npm install

5๏ธโƒฃ Configure Environment Variables (see Environment Variables section)

6๏ธโƒฃ Seed the Database (creates test users)

cd ../server
node seed.js

โ–ถ๏ธ Running Locally

Open three terminals and run:

Terminal Command URL
๐ŸŸข Server cd server && npm run dev http://localhost:5000
๐Ÿ”ต Admin Panel cd Admin && npm run dev http://localhost:5173
๐ŸŸฃ Client Site cd Client && npm run dev http://localhost:5174

๐Ÿ’ก The server runs on port 5000 by default. Admin and Client panels will auto-assign available ports via Vite.


โš™๏ธ Environment Variables

Server (server/.env)

# Server Configuration
PORT=5000
NODE_ENV=development

# Database
MONGO_URI=your_mongodb_connection_string_here

# Authentication
JWT_SECRET=your_super_secret_jwt_key_here

# AWS SES (Email Service)
AWS_REGION=your_aws_region
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_SES_FROM_EMAIL=noreply@yourhospital.com

# AWS S3 (File Storage)
AWS_S3_BUCKET_NAME=your_s3_bucket_name

# Google reCAPTCHA
RECAPTCHA_SECRET_KEY=your_recaptcha_secret_key

Admin Panel (Admin/.env)

VITE_API_URL=http://localhost:5000/api
VITE_APP_NAME=HMS Admin Portal
VITE_APP_VERSION=1.0.0
VITE_ENABLE_NOTIFICATIONS=true
VITE_ENABLE_ANALYTICS=false

Client Site (Client/.env)

VITE_API_URL=http://localhost:5000/api

โš ๏ธ Never commit .env files to version control. Use the .env.example files as reference.


๐Ÿ”‘ Test Credentials

Use these credentials on the Admin Panel to explore different roles.

Note

These test credentials only work when running the project locally (localhost). You must seed the database first by running:

cd server
node seed.js

This creates the default Admin, Receptionist, and Doctor accounts in your local MongoDB.

๐Ÿ‘‘ Admin ๐Ÿ‘ฉโ€โš•๏ธ Receptionist ๐Ÿฉบ Doctor
Field Value
๐Ÿ“ง Email admin@hospital.com
๐Ÿ“ฑ Phone 1234567890
๐Ÿ”’ Password admin123
Field Value
๐Ÿ“ง Email receptionist@hospital.com
๐Ÿ“ฑ Phone 1234567891
๐Ÿ”’ Password receptionist123
Field Value
๐Ÿ“ง Email doctor@hospital.com
๐Ÿ“ฑ Phone 1234567892
๐Ÿ”’ Password doctor123

๐Ÿ“ก API Endpoints

๐Ÿ” Authentication โ€” /api/auth
Method Endpoint Description Auth Required
POST /api/auth/login Login with email/phone & password โŒ
POST /api/auth/register Register new user โŒ
GET /api/auth/profile Get current user profile โœ…
๐Ÿ‘ฅ User Management โ€” /api/user-management
Method Endpoint Description Auth Required
GET /api/user-management Get all users โœ… Admin
POST /api/user-management Create new user โœ… Admin
PUT /api/user-management/:id Update user โœ… Admin
DELETE /api/user-management/:id Delete user โœ… Admin
๐Ÿฉบ Doctors โ€” /api/doctors
Method Endpoint Description Auth Required
GET /api/doctors Get all doctors โœ…
POST /api/doctors Create doctor โœ… Admin
PUT /api/doctors/:id Update doctor โœ… Admin
DELETE /api/doctors/:id Delete doctor โœ… Admin
๐Ÿ“… Appointments โ€” /api/admin/appointments
Method Endpoint Description Auth Required
GET /api/admin/appointments Get all appointments โœ…
POST /api/admin/appointments Create appointment โœ…
PUT /api/admin/appointments/:id Update appointment โœ…
DELETE /api/admin/appointments/:id Delete appointment โœ… Admin
๐ŸŒ Public Appointments โ€” /api/public-appointments
Method Endpoint Description Auth Required
GET /api/public-appointments/doctors Get available doctors โŒ
GET /api/public-appointments/slots Get available slots โŒ
POST /api/public-appointments Book public appointment โŒ
๐Ÿ‘ค Patients โ€” /api/patients
Method Endpoint Description Auth Required
GET /api/patients Get all patients โœ…
POST /api/patients Create patient โœ…
PUT /api/patients/:id Update patient โœ…
๐Ÿ’ฐ Billing โ€” /api/bills
Method Endpoint Description Auth Required
GET /api/bills Get all bills โœ…
POST /api/bills Create bill โœ…
PUT /api/bills/:id Update bill โœ…
๐Ÿข Departments โ€” /api/departments
Method Endpoint Description Auth Required
GET /api/departments Get all departments โœ…
POST /api/departments Create department โœ… Admin
PUT /api/departments/:id Update department โœ… Admin
DELETE /api/departments/:id Delete department โœ… Admin
๐Ÿ”ง More Endpoints
Base Route Description
/api/services Hospital services management
/api/profile User profile operations
/api/slot-config Appointment slot configuration
/api/invoice-template Invoice template management
/api/dashboard Dashboard analytics data
/api/support Support ticket management
/api/announcements Announcement management (CMS)
/api/site-updates Site update management (CMS)

๐Ÿ”’ Security Features

Feature Implementation Status
๐Ÿ” Password Hashing bcrypt with salt rounds (10) โœ… Active
๐ŸŽซ Token Authentication JWT (JSON Web Tokens) โœ… Active
๐Ÿ›ก๏ธ HTTP Security Headers Helmet.js โœ… Active
๐ŸŒ CORS Protection Configurable origin whitelist โœ… Active
๐Ÿ‘ฎ Role-Based Access Middleware-level RBAC โœ… Active
๐Ÿค– Bot Protection Google reCAPTCHA v2 โœ… Active
๐Ÿ“ Request Logging Morgan HTTP logger โœ… Active
๐Ÿ”’ Environment Secrets dotenv (never committed) โœ… Active
๐Ÿ“ค Secure File Upload Multer with size/type limits โœ… Active

๐Ÿ›ฃ๏ธ Roadmap

gantt
    title HMS Development Roadmap
    dateFormat  YYYY-MM
    axisFormat  %b %Y

    section โœ… Completed
    Core Authentication & RBAC          :done, 2025-01, 2025-03
    Admin Dashboard & Analytics         :done, 2025-02, 2025-04
    Appointment Management              :done, 2025-03, 2025-05
    Billing & Invoice System            :done, 2025-04, 2025-06
    Public Appointment Booking          :done, 2025-05, 2025-07
    AWS S3 & SES Integration            :done, 2025-06, 2025-08
    CMS (Announcements & Updates)       :done, 2025-07, 2025-09
    Slot Configuration System           :done, 2025-08, 2025-10

    section ๐Ÿ”„ In Progress
    Performance Optimization            :active, 2026-01, 2026-03
    Mobile Responsiveness Polish        :active, 2026-02, 2026-04

    section ๐Ÿ“‹ Planned
    SMS Notifications (Twilio)          : 2026-04, 2026-06
    Payment Gateway Integration         : 2026-05, 2026-07
    Advanced Reporting & Analytics      : 2026-06, 2026-08
    Multi-language Support (i18n)       : 2026-07, 2026-09
    Prescription PDF Generation         : 2026-08, 2026-10
    Patient Mobile App (React Native)   : 2026-09, 2026-12
Loading

๐Ÿค Contributing

We love contributions! This is an open-source project and every contribution counts โ€” whether it's fixing a bug, improving docs, or building a new feature. ๐ŸŽ‰

๐Ÿ“Œ Contribution Steps

Step 1  โ†’  Step 2  โ†’  Step 3  โ†’  Step 4  โ†’  Step 5  โ†’  Step 6  โ†’  Step 7
 Fork      Clone      Branch     Code       Commit     Push       PR + Form

1๏ธโƒฃ Fork the Repository

Click the Fork button at the top-right of this repo to create your own copy.

2๏ธโƒฃ Clone Your Fork

git clone https://github.com/<your-username>/Hospital-Management-System.git
cd Hospital-Management-System

3๏ธโƒฃ Create a Feature Branch

git checkout -b feature/your-feature-name
# Examples:
# git checkout -b feature/add-prescription-module
# git checkout -b fix/login-validation-error
# git checkout -b docs/update-api-docs

4๏ธโƒฃ Make Your Changes

  • Follow existing code style and conventions
  • Write clean, commented code
  • Test your changes locally

5๏ธโƒฃ Commit Your Changes

git add .
git commit -m "feat: add prescription generation module"

Use Conventional Commits format:

  • feat: โ€” New feature
  • fix: โ€” Bug fix
  • docs: โ€” Documentation changes
  • style: โ€” Code formatting (no logic change)
  • refactor: โ€” Code restructuring
  • test: โ€” Adding/updating tests

6๏ธโƒฃ Push to Your Fork

git push origin feature/your-feature-name

7๏ธโƒฃ Open a Pull Request & Submit Contribution Form

  • Go to the original repository and click "New Pull Request"
  • Provide a clear title and description of your changes
  • Link any related issues using Fixes #issue-number

๐Ÿ“ Final Step: After opening your PR, please fill out the contribution form by clicking the "Contribute Now" button on the HMS Contribution Page. This helps us track and acknowledge your contribution!


๐Ÿ› Reporting Issues

Found a bug? Help us improve by reporting it!

๐Ÿ“ Steps to Report an Issue

  1. ๐Ÿ” Search Existing Issues โ€” Check if the issue has already been reported in Issues
  2. ๐Ÿ“‹ Create a New Issue โ€” Click New Issue
  3. ๐Ÿ“ Fill in the Details:
    • Title: Short, descriptive title (e.g., "Login fails with phone number on mobile")
    • Description: Clear explanation of the issue
    • Steps to Reproduce: Numbered steps to recreate the problem
    • Expected Behavior: What should happen
    • Actual Behavior: What actually happens
    • Screenshots: Attach screenshots if applicable
    • Environment: Browser, OS, Node.js version, etc.
  4. ๐Ÿท๏ธ Add Labels โ€” Use appropriate labels like bug, enhancement, documentation, etc.
  5. ๐Ÿ“ค Submit โ€” Click "Submit new issue"

๐Ÿ’ก Tip: The more details you provide, the faster we can fix it!


๐Ÿ“œ Pull Request Rules

To keep the codebase clean and maintainable, please follow these PR guidelines:

โœ… Do โŒ Don't
  • โœ… Create feature branch from main
  • โœ… One PR per feature/fix
  • โœ… Write clear PR description
  • โœ… Follow existing code style
  • โœ… Test changes locally before PR
  • โœ… Keep commits atomic and meaningful
  • โœ… Use Conventional Commit messages
  • โœ… Link related issues (Fixes #123)
  • โœ… Update docs if changing behavior
  • โœ… Keep PR scope focused and small
  • โŒ Push directly to main
  • โŒ Mix multiple features in one PR
  • โŒ Submit untested code
  • โŒ Include unrelated changes
  • โŒ Commit .env or secrets
  • โŒ Commit node_modules/
  • โŒ Use vague commit messages
  • โŒ Ignore code review feedback
  • โŒ Force push to shared branches
  • โŒ Submit empty or WIP PRs

๐Ÿ”„ PR Review Process

Submit PR  โ†’  Auto Checks  โ†’  Code Review  โ†’  Changes Requested?  โ†’  Approved  โ†’  Merged! ๐ŸŽ‰
                                                    โ†“
                                              Make Changes
                                                    โ†“
                                              Push Updates  โ†’  Re-Review  โ†’  Merged! ๐ŸŽ‰

โญ Show Your Support

If you find this project helpful or learned something from it, please consider:

โญ Star this repository โ€” It helps others discover this project!

๐Ÿด Fork it โ€” And build something amazing!

๐Ÿ“ฃ Share it โ€” Spread the word on social media!

๐Ÿ› Report bugs โ€” Help us make it better!

๐Ÿ’ก Suggest features โ€” We'd love to hear your ideas!


Star this repo

๐Ÿ“„ License

This project is licensed under the MIT License โ€” you are free to use, modify, and distribute this project.

MIT License

Copyright (c) 2026 Saurabh Kumar

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

๐Ÿ‘จโ€๐Ÿ’ป Developer

ยฉ Developed with โค๏ธ by Saurabh Kumar. All Rights Reserved 2026

Saurabh Profile GitHub Follow

๐Ÿ”— Connect With Me

LinkedIn Twitter Instagram Facebook Portfolio WhatsApp


Made with โค๏ธ by Saurabh Kumar
โญ Star this repo if you find it helpful!

Repo Views


๐Ÿ’ If you like this project, please give it a โญ and share it with others!

Happy Coding! ๐Ÿš€

Footer

About

Hospital Management System (HMS) is a full-stack, role-based web application designed to streamline hospital operations including appointment booking, patient management, billing, and administrative workflows.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages