This repository contains the backend code for an appointment management system built using Node.js, Express, and MongoDB. The system allows for managing patient and doctor data, including adding, retrieving, and logging in users.
Before you begin, ensure you have met the following requirements:
- You have installed Node.js and npm.
- You have a MongoDB Atlas account or a local MongoDB instance.
- Clone the repository:
git clone https://github.com/CharudattaGhute/hospital_managment_project.git
2 . Install dependencies:
npm install express
npm install mongoose- Install nodemon:
npm install nodemon
- Create a .env file in the root directory and add your MongoDB connection string:
MONGODB_URI=mongodb+srv://<username>:<password>@cluster0.prqkren.mongodb.net/appoinment
- Replace and with your MongoDB Atlas credentials.
- Add patient
- Add Doctor
- get Appointment
- Method POST
- Body parameters
"patient_email": "johndoe@example.com",
- Add Doctor
- Method POST
- Start the server
npm start
- Contributions are always welcome! Please feel free to submit a Pull Request.