Skip to content

Full-stack Hospital Management System built with MERN stack. Supports role-based login for Patients, Doctors, Pharmacists, and Admins. Features dashboards for each role, JWT authentication, MongoDB Atlas, and Cloudinary integration. Deployed on Render & Vercel.

Notifications You must be signed in to change notification settings

Hareesh-Reddy-9126/prescripto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏥 Hospital Management System (MERN Stack)

🚀 Overview

The Hospital Management System is a full-stack web application built using the MERN stack (MongoDB, Express, React, Node.js).
It helps manage hospital operations efficiently by providing role-based dashboards for Patients, Doctors, Pharmacists, and Admins — all connected to a single backend API.

🧩 Features

  • 🔐 Role-Based Authentication (Patient, Doctor, Pharmacist, Admin)
  • 🧾 JWT-Based Secure Login System
  • 💊 Pharmacist Dashboard for managing prescriptions and stock
  • 👨‍⚕️ Doctor Dashboard for managing appointments and reports
  • 👨‍💼 Admin Dashboard for monitoring hospital operations
  • 🧍‍♂️ Patient Dashboard for booking and tracking appointments
  • ☁️ MongoDB Atlas for database
  • 🌩️ Cloudinary for file/image uploads
  • ⚙️ Backend hosted on Render
  • 🌐 Frontends deployed on Vercel

🧠 Project Structure

project/ ├── backend/ → Node.js + Express + MongoDB + JWT + Cloudinary ├── frontend/ → Main app (login, signup, patient dashboard) ├── admin/ → Admin + Doctor dashboard ├── pharmacist/ → Pharmacist dashboard

### 🧰 Tech Stack
**Frontend:** React (Vite)  
**Backend:** Node.js, Express.js  
**Database:** MongoDB Atlas  
**Authentication:** JWT, bcrypt  
**Cloud Storage:** Cloudinary  
**Deployment:** Render (backend) + Vercel (frontends)


### 🧾 Deployment Summary

| Platform          | Usage     | Description                        |
| ----------------- | --------- | ---------------------------------- |
| **Render**        | Backend   | Express + MongoDB API              |
| **Vercel**        | Frontends | React-based dashboards             |
| **MongoDB Atlas** | Database  | Patient, Doctor, and Hospital Data |
| **Cloudinary**    | Storage   | Upload and manage images securely  |

### 🧑‍💻 How to Run Locally

# Clone the repo
git clone https://github.com/<your-username>/<repo-name>.git
cd project

# Run Backend
cd backend
npm install
npm start

# Run Frontend (or Admin/Pharmacist)
cd ../frontend
npm install
npm run dev


### 🧠 Login Roles

| Role           | Email                                         | Password      |
| -------------- | --------------------------------------------- | ------------- |
| **Admin**      | [admin@example.com](mailto:admin@example.com) | greatstack123 |
| **Doctor**     | (create via signup)                           | —             |
| **Pharmacist** | (create via signup)                           | —             |
| **Patient**    | (create via signup)                           | —             |

### 🧑‍🎓 Developed By

**Hareesh Reddy**
🎓 B.Tech – CSE, KL University
💻 Passionate about Web Development, MERN Stack, and Cloud Deployments
📬 *"Learning by building real-world projects!"*

---

### ⭐ Support

If you like this project, consider starring ⭐ the repo on GitHub — it helps others find it too!

---

### 🛡️ License

This project is open-source under the **MIT License**.

About

Full-stack Hospital Management System built with MERN stack. Supports role-based login for Patients, Doctors, Pharmacists, and Admins. Features dashboards for each role, JWT authentication, MongoDB Atlas, and Cloudinary integration. Deployed on Render & Vercel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages