A full-stack web application for managing hospital operations including Patients, Doctors, and Appointments. Built with React.js for the frontend and Node.js + Express + MongoDB for the backend.
-
Patient Management
- Add, edit, delete patients
- View patient details
-
Doctor Management
- Add, edit, delete doctors
- View doctor details and specialties
-
Appointment Management
- Schedule new appointments
- Edit and delete appointments
- View all appointments with patient and doctor information
-
Responsive UI
- Clean and modern interface
- Interactive cards for Patients, Doctors, and Appointments
- Frontend: React.js, CSS
- Backend: Node.js, Express.js
- Database: MongoDB (Mongoose)
- HTTP Client: Axios
- Routing: React Router
- CORS: Enabled for frontend-backend communication
Hospital-Management/ │ ├─ Backend/ │ ├─ models/ # Mongoose schemas │ ├─ routes/ # API routes for Patients, Doctors, Appointments │ ├─ .env # Environment variables (Mongo URI, PORT) │ └─ server.js # Express server entry │ ├─ Frontend/ │ └─ myapp/ │ ├─ src/ │ │ ├─ components/ # React components │ │ ├─ App.js │ │ ├─ App.css │ │ └─ index.js │ └─ public/ │ └─ index.html │ ├─ .gitignore └─ README.md
cd Backend
npm install
🔗 API Endpoints
Patients
GET /patients
POST /patients/add
POST /patients/update/:id
DELETE /patients/delete/:id
Doctors
GET /doctors
POST /doctors/add
POST /doctors/update/:id
DELETE /doctors/delete/:id
Appointments
GET /appointments
POST /appointments/add
POST /appointments/update/:id
DELETE /appointments/delete/:id