How madan9482/mental-wellness works
This is a mental-wellness platform with user, therapist, and administrator experiences. Users register or log in, then can book and manage appointments, consult a wellness chatbot, and join online meetings; therapists manage availability, appointments, patients, and profiles, while administrators manage users, therapists, analytics, and settings. The React router dispatches to these screens, which use a shared Axios API client to reach the server. The server implementation was not excerpted, so its relationship to the client is shown as unverified.
Main entry points: App.jsx Route dispatcher · api.js HTTP API client · Login.jsx Login · Register.jsx Registration
Components 22
App and access
- Route dispatcher
client/src/App.jsx - Login
client/src/components/auth/Login.jsx - Registration
client/src/components/auth/Register.jsx - Route protection
client/src/components/auth/ProtectedRoute.jsx - Role dashboard
client/src/components/Dashboard.jsx
User and therapist care
- Book appointments
client/src/components/user/Appointments.jsx - My appointments
client/src/components/user/MyAppointments.jsx - User profile
client/src/components/user/Profile.jsx - Therapist appointments
client/src/components/therapist/TherapistAppointments.jsx - Availability management
client/src/components/therapist/TherapistAvailability.jsx - Patient management
client/src/components/therapist/TherapistPatients.jsx - Therapist profile
client/src/components/therapist/TherapistProfile.jsx - Wellness chatbot
client/src/components/chat/ChatBot.jsx - Online meeting
client/src/components/meeting/OnlineMeeting.jsx
Administration
- User administration
client/src/components/admin/AdminUsers.jsx - Therapist administration
client/src/components/admin/AdminTherapists.jsx - Analytics
client/src/components/admin/AdminAnalytics.jsx - Admin profile
client/src/components/admin/AdminProfile.jsx - System settings
client/src/components/admin/SystemSettings.jsx
Shared platform
- HTTP API client
client/src/services/api.js - Application server
server/index.ts
Other components
- Platform user
Connections 32
- Platform user → Route dispatcher: opens
- Route dispatcher → Login: routes to
client/src/App.jsx - Route dispatcher → Registration: routes to
client/src/App.jsx - Route dispatcher → Route protection: protects routes
client/src/App.jsx - Route dispatcher → Role dashboard: routes to
client/src/App.jsx - Route dispatcher → Book appointments: routes to
client/src/App.jsx - Route dispatcher → My appointments: routes to
client/src/App.jsx - Route dispatcher → User profile: routes to
client/src/App.jsx - Route dispatcher → Therapist appointments: routes to
client/src/App.jsx - Route dispatcher → Availability management: routes to
client/src/App.jsx - Route dispatcher → Patient management: routes to
client/src/App.jsx - Route dispatcher → User administration: routes to
client/src/App.jsx - Route dispatcher → Therapist administration: routes to
client/src/App.jsx - Route dispatcher → Analytics: routes to
client/src/App.jsx - Route dispatcher → System settings: routes to
client/src/App.jsx - Login → HTTP API client: auth requests
client/src/components/auth/Login.jsx - Registration → HTTP API client: registers via
client/src/components/auth/Register.jsx - Book appointments → HTTP API client: appointment requests
client/src/components/user/Appointments.jsx - My appointments → HTTP API client: appointment requests
client/src/components/user/MyAppointments.jsx - User profile → HTTP API client: profile requests
client/src/components/user/Profile.jsx - Therapist appointments → HTTP API client: appointment requests
client/src/components/therapist/TherapistAppointments.jsx - Availability management → HTTP API client: availability requests
client/src/components/therapist/TherapistAvailability.jsx - Patient management → HTTP API client: patient requests
client/src/components/therapist/TherapistPatients.jsx - Therapist profile → HTTP API client: profile requests
client/src/components/therapist/TherapistProfile.jsx - Wellness chatbot → HTTP API client: sends messages
client/src/components/chat/ChatBot.jsx - Online meeting → HTTP API client: meeting requests
client/src/components/meeting/OnlineMeeting.jsx - User administration → HTTP API client: admin requests
client/src/components/admin/AdminUsers.jsx - Therapist administration → HTTP API client: admin requests
client/src/components/admin/AdminTherapists.jsx - Analytics → HTTP API client: analytics requests
client/src/components/admin/AdminAnalytics.jsx - Admin profile → HTTP API client: profile requests
client/src/components/admin/AdminProfile.jsx - System settings → HTTP API client: settings requests
client/src/components/admin/SystemSettings.jsx - HTTP API client → Application server: HTTP API