How pankajyadav1999/medinexus_rf works
MediNexus is a hospital-management React frontend, with login and a dashboard leading into patient management. The tree also shows appointment, doctor, billing, pharmacy, and inventory screens, models, and services. Sampled code confirms only login/session handling, dashboard rendering, and patient routes; service implementations and most feature wiring were not sampled, so those relationships are omitted.
Main entry points: App.js Router and routes · Dashboard.jsx Dashboard · Login.jsx Login · useAuth.js Auth hook
Components 33
App entry
- Router and routes
src/App.js - Dashboard
src/modules/dashboard/Dashboard.jsx
Access and layout
- Login
src/modules/auth/Login.jsx - Auth hook
src/core/hooks/useAuth.js - Browser session
- Main layout
src/layouts/MainLayout/MainLayout.jsx - Navigation sidebar
src/layouts/MainLayout/Sidebar.jsx
Care management
- Patient list
src/modules/patients/PatientList.jsx - Add patient
src/modules/patients/AddPatient.jsx - Patient details
src/modules/patients/ViewPatient.jsx - Patient service
src/core/services/patientService.js - Patient model
src/core/models/Patient.js - Appointments
src/modules/appointments/AppointmentList.jsx - Schedule appointment
src/modules/appointments/ScheduleAppointment.jsx - Appointment service
src/core/services/appointmentService.js - Appointment model
src/core/models/Appointment.js - Doctor management
src/modules/doctors/DoctorList.jsx - Add doctor
src/modules/doctors/AddDoctor.jsx - Doctor service
src/core/services/doctorService.js - Doctor model
src/core/models/Doctor.js
Hospital operations
- Bill list
src/modules/billing/BillList.jsx - Create bill
src/modules/billing/CreateBill.jsx - Billing service
src/core/services/billingService.js - Billing model
src/core/models/Billing.js - Medicine list
src/modules/pharmacy/MedicineList.jsx - Add medicine
src/modules/pharmacy/AddMedicine.jsx - Pharmacy service
src/core/services/pharmacyService.js - Pharmacy model
src/core/models/Pharmacy.js - Stock list
src/modules/inventory/StockList.jsx - Add stock
src/modules/inventory/AddStock.jsx - Inventory service
src/core/services/inventoryService.js - Inventory model
src/core/models/Inventory.js
Other components
- Hospital user
Connections 10
- Hospital user → Login: enters credentials
- Login → Auth hook: calls login
- Auth hook → Browser session: stores token
- Router and routes → Browser session: checks token
- Router and routes → Login: routes unauthenticated
- Router and routes → Dashboard: routes authenticated
- Router and routes → Patient list: routes patient list
- Router and routes → Add patient: routes patient creation
- Dashboard → Main layout: renders
- Hospital user → Dashboard: views dashboard