Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkptechnicals/hospital-management-system-mern
This project demonstrates a well - defined project implementation of Hospital Management System using MERN stack with appropriate authentication for all users.
https://github.com/mkptechnicals/hospital-management-system-mern
hospital hospital-management hospital-management-system mern mern-project mern-stack mern-stack-development mernstack mongo-db mongodb mongoose node node-js nodejs nodemon react react-router reactjs
Last synced: about 2 months ago
JSON representation
This project demonstrates a well - defined project implementation of Hospital Management System using MERN stack with appropriate authentication for all users.
- Host: GitHub
- URL: https://github.com/mkptechnicals/hospital-management-system-mern
- Owner: MKPTechnicals
- Created: 2024-12-05T19:25:50.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T19:59:32.000Z (about 2 months ago)
- Last Synced: 2024-12-05T20:28:47.982Z (about 2 months ago)
- Topics: hospital, hospital-management, hospital-management-system, mern, mern-project, mern-stack, mern-stack-development, mernstack, mongo-db, mongodb, mongoose, node, node-js, nodejs, nodemon, react, react-router, reactjs
- Language: JavaScript
- Homepage:
- Size: 564 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hospital Management System
[![MongoDB](https://img.shields.io/badge/MongoDB-Database-green.svg)](https://www.mongodb.com/)
[![Express](https://img.shields.io/badge/Express-Framework-blue.svg)](https://expressjs.com/)
[![React](https://img.shields.io/badge/React-Library-61DAFB.svg)](https://reactjs.org/)
[![Node.js](https://img.shields.io/badge/Node.js-Environment-339933.svg)](https://nodejs.org/)## Overview
The Hospital Management System is a web application designed to streamline hospital operations, manage patient records, and enhance the overall efficiency of healthcare services. This application is built using React for the frontend and Node.js with Express for the backend, along with MongoDB for data storage.
## Features
- User authentication for patients, doctors, and admins
- Patient management including records and appointments
- Doctor management with profiles and schedules
- Admin dashboard for overseeing hospital operations
- Responsive design for mobile and desktop users## Technologies Used
- **Frontend:**
- React
- React Router
- Tailwind CSS
- Lucide Icons
- Axios for API calls- **Backend:**
- Node.js
- Express
- MongoDB
- Mongoose
- JWT for authentication
- dotenv for environment variable management## Getting Started
### Prerequisites
- Node.js (v14 or higher)
- MongoDB (local or cloud instance)### Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/hospital-management-system.git
```2. Navigate to the frontend directory and install dependencies:
```bash
cd frontend
npm install
```3. Navigate to the backend directory and install dependencies:
```bash
cd backend
npm install
```4. Update a `/backend/server.js` & `/backend/createAdmin.js` file in the backend directory and add your MongoDB connection string:
```js
// MongoDB connection
mongoose.connect('', {
```
5. To create first admin, add your details to `/backend/createAdmin.js` file in backend directory:```js
const admin = new Admin({
firstName: "abc",
lastName: "xyz",
email: "[email protected]",
password: "xyz123",
role: "admin"
});
```Then, execute it once using:
```bash
node createAdmin.js
```### Running the Application
1. Start the backend server:
```bash
cd backend
node server.js
```2. Start the frontend application:
```bash
cd frontend
npm start
```3. Open your browser and navigate to `http://localhost:3000` to view the application.
## Available Scripts
In the frontend directory, you can run:
- `npm start`: Runs the app in development mode.
- `npm test`: Launches the test runner.
- `npm run build`: Builds the app for production.
- `npm run eject`: Ejects the configuration files.## Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.