How dorra-ourabi/alzheicare-web-project works
AlzheiCare is a caregiver-and-clinician care platform: users authenticate, register or connect a patient, then use role-specific dashboards to coordinate care and review patient information. The repository contains a NestJS backend, two overlapping React frontends, and an MRI service. The graph emphasizes the documented care workflow and the backend domains visible in the tree. Several frontend-to-backend integrations and unsampled features are documented but their runtime wiring was not shown, so those links are dashed and uncited.
Main entry points: App.tsx Web routes · prisma.service.ts PostgreSQL via Prisma · auth.service.ts Authentication · CaregiverAuth.tsx Sign-in pages
Components 31
Web experience
- Web routes
alzheicare-web/Alzheicare-front/src/App.tsx - Sign-in pages
alzheicare-web/Alzheicare-front/src/pages/CaregiverAuth.tsx - Auth state
alzheicare-web/Alzheicare-front/src/context/AuthContext.tsx - Auth helpers
alzheicare-web/Alzheicare-front/src/lib/auth.ts - API client
alzheicare-web/Alzheicare-front/src/lib/api.ts - Care dashboards
alzheicare-web/Alzheicare-front/src/pages/caregiver/Dashboard.tsx - Calendar views
alzheicare-web/Alzheicare-front/src/pages/caregiver/Calendar.tsx - Doctor chat
alzheicare-web/Alzheicare-front/src/pages/caregiver/Chat.tsx - Patient map
alzheicare-web/Alzheicare-front/src/pages/caregiver/LiveMap.tsx - Cognitive games
alzheicare-web/Alzheicare-front/src/pages/caregiver/CognitiveGames.tsx - Notifications
alzheicare-web/Alzheicare-front/src/pages/caregiver/Notifications.tsx - AI assistant UI
alzheicare-web/Alzheicare-front/src/pages/shared/AIAssistant.tsx - MRI review
alzheicare-web/Alzheicare-front/src/pages/doctor/MRI.tsx
Identity and access
- Authentication
alzheicare-web/src/auth/Services/auth.service.ts - JWT access guard
alzheicare-web/src/auth/Guards/jwt.guard.ts - User management
alzheicare-web/src/users/Services/user.service.ts
Care coordination
- Patient dashboard
alzheicare-web/src/dashboard/dashboard.service.ts - Calendar API
alzheicare-web/src/calendar/calendar.controller.ts - Calendar operations
alzheicare-web/src/calendar/calendar.service.ts - Doctor invitations
alzheicare-web/src/invitation/invitation.service.ts - Notification delivery
alzheicare-web/src/notifications/notification.service.ts - Realtime chat
alzheicare-web/src/chat/chat.service.ts
AI and assessment
- AI assistant service
alzheicare-web/src/ai-assistant/ai-assistant.service.ts - MRI classifier API
alzheicare-web/src/ml-classifier/ml-classifier.service.ts - MRI runtime
mri-service/api/main.py
Data and services
- PostgreSQL via Prisma
alzheicare-web/src/prisma/prisma.service.ts - Redis sessions
alzheicare-web/src/auth/Services/redis.service.ts - Google Calendar
- Email service
alzheicare-web/src/mail/mail.service.ts
Other components
- Caregiver
- Doctor
Connections 35
- Caregiver → Web routes: opens app
alzheicare-web/Alzheicare-front/src/App.tsx - Doctor → Web routes: opens app
alzheicare-web/Alzheicare-front/src/App.tsx - Web routes → Sign-in pages: routes to
alzheicare-web/Alzheicare-front/src/App.tsx - Web routes → Care dashboards: routes to
alzheicare-web/Alzheicare-front/src/App.tsx - Web routes → Calendar views: routes to
alzheicare-web/Alzheicare-front/src/App.tsx - Web routes → Doctor chat: routes to
alzheicare-web/Alzheicare-front/src/App.tsx - Web routes → Patient map: routes to
alzheicare-web/Alzheicare-front/src/App.tsx - Web routes → Cognitive games: routes to
alzheicare-web/Alzheicare-front/src/App.tsx - Web routes → Notifications: routes to
alzheicare-web/Alzheicare-front/src/App.tsx - Web routes → AI assistant UI: routes to
alzheicare-web/Alzheicare-front/src/App.tsx - Web routes → MRI review: routes to
alzheicare-web/Alzheicare-front/src/App.tsx - Sign-in pages → Auth state: uses auth
alzheicare-web/Alzheicare-front/src/pages/CaregiverAuth.tsx - Sign-in pages → API client: uses API
alzheicare-web/Alzheicare-front/src/pages/CaregiverAuth.tsx - Auth state → Auth helpers: uses helpers
alzheicare-web/Alzheicare-front/src/context/AuthContext.tsx - Sign-in pages → Authentication: authenticates
- Care dashboards → Patient dashboard: loads patient data
- Calendar views → Calendar API: manages events
- Calendar API → JWT access guard: guards routes
alzheicare-web/src/calendar/calendar.controller.ts - Calendar API → Calendar operations: dispatches operations
alzheicare-web/src/calendar/calendar.controller.ts - Calendar operations → Google Calendar: syncs events
- Doctor chat → Realtime chat: exchanges messages
- Notifications → Notification delivery: views alerts
- AI assistant UI → AI assistant service: sends questions
- MRI review → MRI classifier API: submits scans
- MRI classifier API → MRI runtime: uses classifier
- Authentication → PostgreSQL via Prisma: reads and writes
alzheicare-web/src/auth/Services/auth.service.ts - Authentication → Redis sessions: stores sessions
alzheicare-web/src/auth/Services/auth.service.ts - Authentication → Email service: sends verification
alzheicare-web/src/auth/Services/auth.service.ts - Authentication → User management: creates accounts
- Patient dashboard → PostgreSQL via Prisma: reads patient data
- Calendar operations → PostgreSQL via Prisma: stores local events
- Doctor invitations → PostgreSQL via Prisma: stores invitations
- Notification delivery → PostgreSQL via Prisma: reads notifications
- Realtime chat → PostgreSQL via Prisma: stores messages
- AI assistant service → PostgreSQL via Prisma: loads care context