This project is a web application built with the MERN stack (MongoDB, Express, React, Node.js) for managing hospital operations. It allows patients to log in, schedule appointments, and view their prescriptions. The system provides a user-friendly interface for both patients and administrators, facilitating efficient healthcare management.
- frontend/: Contains the React application for the user interface.
- backend/: Contains the Node.js and Express server for handling API requests and database interactions.
- dashboard/: Contains the admin dashboard for managing doctors and prescriptions.
- Patient Login: Secure authentication for patients to access their profiles. 🔑
- Appointment Scheduling: Easily book and manage appointments with available doctors. 📅
- Prescription Management: View past prescriptions added to the patient's profile. 💊
- Disease Information: Access information on common diseases, their symptoms, and remedies. 📖
- Doctor Directory: A comprehensive list of available doctors, including their specialties and experience. 👨⚕️👩⚕️
- Admin Dashboard: An interface for administrators to manage doctors and add prescriptions for patients. ⚙️
- MERN Stack:
- MongoDB: For database management. 🗄️
- Express: A web framework for Node.js. 🌐
- React: The frontend framework for building the user interface. ⚛️
- Node.js: For the backend server. 🟢
- HTML/CSS/JavaScript: For front-end design and interactivity. 🎨
This project is licensed under the MIT License - see the LICENSE file for details.
- Navigate to the backend directory:
cd backend
- Install the required packages:
npm install
- Start the backend server:
npm run dev
- Open a new terminal and navigate to the frontend directory:
cd frontend
- Install the required packages:
npm install
- Start the development server:
npm run dev
- Access the web application at
http://localhost:5173
.
- Open a new terminal and navigate to the dashboard directory:
cd dashboard
- Install the required packages:
npm install
- Start the development server:
npm run dev
- Access the web application at
http://localhost:5174
.
The project has been containerized using Docker to simplify deployment and eliminate dependency issues. Follow the steps below to build and run the application using Docker.
Ensure Docker and Docker Compose are installed on your system.
-
Navigate to the root directory of the project (where the
docker-compose.yml
file is located):cd <project-root>
-
Build the Docker images:
docker-compose build
-
Start the containers:
docker-compose up
-
Access the application:
- Backend API:
http://localhost:4000
- Frontend:
http://localhost:3000
- Dashboard:
http://localhost:3001
- Backend API:
To stop the running containers, use:
docker-compose down
- You can modify the exposed ports or environment variables in the
docker-compose.yml
file as needed. - The
Dockerfile
in each service directory defines the build process for that service.
- Inspired by the need for efficient hospital management solutions.
- Open-source libraries and resources that aided development.