Skip to content

RushiBg/Hosptial-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hospital Management System

A full-featured Hospital Management System built with the MERN stack (MongoDB, Express.js, React.js, Node.js). This system allows hospitals to efficiently manage doctors, patients, and appointments through a secure web interface, with dedicated dashboards for admins and patients.


🚀 Features

For Patients

  • Registration & Login: Patients can easily create an account and log in securely.
  • View Doctors: Browse all registered doctors along with their department, contact info, and profiles.
  • Book Appointments: Schedule appointments with doctors, providing all necessary patient information.
  • Appointment Status: Track appointment status (Pending, Accepted, Rejected).
  • Visit Tracking: See which appointments have been visited or not.

For Admins

  • Admin Authentication: Secure admin login for dashboard access.
  • Doctor Management: Add new doctors with profile image, department, and credentials.
  • Appointments Dashboard: View all appointments, update their status, and mark visits.
  • Patient Management: Access details of registered patients.
  • Logout: Secure logout functionality for both patients and admins.

For Doctors (future enhancement)

  • Doctor Panel: (To be implemented) Dedicated view for doctors to manage their appointments and patient details.

🏗️ Project Structure

backend/      # Express.js API for users, appointments, authentication, DB connection
dashboard/    # React.js admin dashboard for hospital management
frontend/     # React.js patient-side interface for booking appointments

🛠️ Tech Stack

  • Frontend: React.js
  • Backend: Node.js, Express.js
  • Database: MongoDB
  • Authentication: JWT (JSON Web Token), Cookies
  • Cloud Storage: Cloudinary (for doctor profile images)
  • Styling: CSS/React styles
  • APIs: RESTful API endpoints

📋 Main Modules

User & Admin

  • Register/Login (patients and admins)
  • Add new admins (admin only)
  • User details and authentication middleware

Doctor Management

  • Register new doctors (admin only)
  • Store doctor profiles with department, avatar, contact info

Appointment Management

  • Book appointments (patients)
  • List all appointments (admin)
  • Update appointment status (admin)
  • Mark appointments as visited/not visited

🖥️ Dashboards

Dashboard Features
Admin Doctors, Appointments, Add Doctor/Admin, Status controls
Patient Doctor list, Book appointments, Track appointment status

⚡ Quick Start

1. Clone the repository

git clone https://github.com/RushiBg/Hosptial-Management-System.git
cd Hosptial-Management-System

2. Setup Backend

cd backend
npm install
# Configure your .env with MONGO_URI and JWT_SECRET
npm start

3. Setup Dashboard (Admin)

cd ../dashboard
npm install
npm start

4. Setup Frontend (Patient)

cd ../frontend
npm install
npm start

📝 Environment Variables

Backend requires:

  • MONGO_URI (your MongoDB connection string)
  • JWT_SECRET (your JWT secret key)
  • Cloudinary config for doctor avatars

📣 Contributing

Feel free to fork and contribute! Pull requests and suggestions are welcome.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •