How vishwassk15/healthhub-frontend works
HealthHub is a React frontend for doctor discovery, appointment booking and account management. The user journey runs from browsing doctors and selecting a time slot through booking, then managing or paying for appointments; account registration, login and profile editing support that flow. Shared context loads doctor and user data from the backend, while the appointment-history page integrates payment options. The README also describes profile viewing and availability browsing. Edges reflect shown routing, context use and API calls; some feature pages and integrations are only documented or listed in the source index, so uncertain connections are omitted.
Main entry points: App.jsx Routes and layout · AppContext.jsx Shared app state · MyAppointments.jsx Appointment history · Appointment.jsx Doctor and slot selection
Components 20
Application shell
- Routes and layout
src/App.jsx - Navigation and auth menu
src/components/Navbar.jsx - Footer
src/components/Footer.jsx - Shared app state
src/context/AppContext.jsx - About page
src/pages/About.jsx - Contact page
src/pages/Contact.jsx
Doctor discovery
- Home page
src/pages/Home.jsx - Booking banner
src/components/Header.jsx - Speciality browsing
src/components/SpecialityMenu.jsx - Featured doctors
src/components/TopDoctors.jsx - Doctor search
src/pages/Doctors.jsx
Booking and payments
- Doctor and slot selection
src/pages/Appointment.jsx - Related doctors
src/components/RelatedDoctors.jsx - Appointment history
src/pages/MyAppointments.jsx - Payment providers
- Payment verification
src/pages/Verify.jsx
Account management
- Login and registration
src/pages/Login.jsx - Profile editing
src/pages/MyProfile.jsx
Other components
- Patient
- HealthHub REST API
Connections 33
- Patient → Routes and layout: uses
README.md - Routes and layout → Navigation and auth menu: renders
src/App.jsx - Routes and layout → Footer: renders
src/App.jsx - Routes and layout → Home page: routes to
src/App.jsx - Routes and layout → Doctor search: routes to
src/App.jsx - Routes and layout → Doctor and slot selection: routes to
src/App.jsx - Routes and layout → Appointment history: routes to
src/App.jsx - Routes and layout → Login and registration: routes to
src/App.jsx - Routes and layout → Profile editing: routes to
src/App.jsx - Routes and layout → Payment verification: routes to
src/App.jsx - Routes and layout → About page: routes to
src/App.jsx - Routes and layout → Contact page: routes to
src/App.jsx - Home page → Booking banner: renders
src/pages/Home.jsx - Home page → Speciality browsing: renders
src/pages/Home.jsx - Home page → Featured doctors: renders
src/pages/Home.jsx - Shared app state → HealthHub REST API: loads doctors and profile
src/context/AppContext.jsx - Doctor search → Shared app state: reads doctor list
src/pages/Doctors.jsx - Featured doctors → Shared app state: reads doctor list
src/components/TopDoctors.jsx - Doctor and slot selection → Shared app state: reads doctor data
src/pages/Appointment.jsx - Doctor and slot selection → Related doctors: renders
src/pages/Appointment.jsx - Related doctors → Shared app state: reads doctor list
src/components/RelatedDoctors.jsx - Doctor and slot selection → HealthHub REST API: books appointment
src/pages/Appointment.jsx - Doctor and slot selection → Appointment history: navigates after booking
src/pages/Appointment.jsx - Appointment history → HealthHub REST API: loads and cancels appointments
src/pages/MyAppointments.jsx - Appointment history → Payment providers: starts payment
src/pages/MyAppointments.jsx - Appointment history → HealthHub REST API: requests payment and verifies
src/pages/MyAppointments.jsx - Appointment history → Payment verification: navigates after payment
- Login and registration → Shared app state: uses shared state
src/pages/Login.jsx - Profile editing → Shared app state: reads and refreshes profile
src/pages/MyProfile.jsx - Profile editing → HealthHub REST API: updates profile
src/pages/MyProfile.jsx - Navigation and auth menu → Shared app state: reads auth state
src/components/Navbar.jsx - Navigation and auth menu → Profile editing: navigates to
src/components/Navbar.jsx - Navigation and auth menu → Appointment history: navigates to
src/components/Navbar.jsx