This is a comprehensive Medical Patient Management System built using Next.js, Tailwind CSS, DaisyUI, Firebase Authentication, Express.js, Node.js, and MongoDB. The system is designed to allow doctors and nurses to manage patient records securely.
- User Authentication: Utilizes Firebase Authentication for secure user login and authentication.
- User Roles: Supports two user roles - Doctor and Nurse, each with specific permissions.
- Patient Management: Allows doctors to add, update, and delete patient records.
- Prescription Management: Enables doctors to attach prescriptions (as PDF files) to specific patients.
- File Upload: Uses multer npm package for handling file uploads (prescriptions).
- Backend API: Express.js powered backend with MongoDB as the database for storing patient and prescription data.
- Responsive UI: Built using Tailwind CSS and DaisyUI to ensure a responsive and visually appealing user interface.
Before getting started, ensure you have the following installed:
- Node.js (https://nodejs.org)
- MongoDB (https://www.mongodb.com)
- Firebase Account (for authentication) (https://firebase.google.com)
- Clone the repository:
git clone https://github.com/justJubair/eHealth.git
- Navigate to the project directory:
cd eHealth
- Install dependencies:
npm install
-
Set up Firebase Authentication:
- Create a Firebase project on the Firebase console.
- Enable Firebase Authentication and choose the authentication methods (e.g., Email/Password).
- Obtain your Firebase configuration credentials.
- Create a
.env.local
file in the root directory and add your Firebase configuration:
NEXT_PUBLIC_FIREBASE_API_KEY=your-api-key NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-auth-domain NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-storage-bucket NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your-sender-id NEXT_PUBLIC_FIREBASE_APP_ID=your-app-id
-
Set up MongoDB:
- Install MongoDB and ensure it's running.
- Create a
.env
file in the root director of server and add your mongoDB connection string
dbURL = "mongodb+srv://YourDB:[email protected]/?retryWrites=true&w=majority&appName=Cluster0"
-
Start the development server:
npm run dev
- Visit
http://localhost:3000
in your browser to access the application.
- Doctor Role: Log in with a doctor account to add, update, or delete patient records. Additionally, doctors can upload prescriptions for patients.
- Nurse Role: Log in with a nurse account to update patient records.
- Patient Management: Add new patients, update patient details, and delete patients as necessary.
- Prescription Management: Attach prescriptions (PDF files) to specific patients for record-keeping.
Contributions are welcome! Feel free to open issues or pull requests for any improvements or fixes.
Your Name - Jubair Ahmed
For any inquiries or support, please contact [email protected].