How jetendra8915/lifelink works
LifeLink is a blood donor and emergency-availability coordination portal. Users enter through the React application to search donors and facilities, submit and track emergency requests, view map and directory information, or register and use role-specific dashboards. Those workflows use service modules backed by Supabase for authentication and data. The README documents mapping and dashboard capabilities; sampled source shows routing and selected service calls, but not every page implementation or database policy, so those internal links are omitted where unverified.
Main entry points: App.jsx React routes · supabase.js Supabase client · authService.js Authentication service · facilityService.js Facility and inventory
Components 20
Application entry
- React routes
frontend/src/App.jsx
User workflows
- Home
frontend/src/pages/Home.jsx - Login and registration
frontend/src/pages/Register.jsx - Find blood
frontend/src/pages/FindBlood.jsx - Emergency requests
frontend/src/pages/EmergencyRequest.jsx - Blood bank directory
frontend/src/pages/BloodBanks.jsx - Interactive map
frontend/src/pages/MapView.jsx - Role dashboards
frontend/src/dashboards
Domain services
- Session and roles
frontend/src/context/AuthContext.jsx - Authentication service
frontend/src/services/authService.js - Donor service
frontend/src/services/donorService.js - Facility and inventory
frontend/src/services/facilityService.js - Request tracking
frontend/src/services/requestService.js - Blood and form helpers
frontend/src/utils - Distance calculation
frontend/src/utils/distanceCalc.js
Supabase platform
- Supabase client
frontend/src/services/supabase.js - Supabase Auth
- PostgreSQL data
supabase_schema.sql
Other components
- Portal user
- OpenStreetMap
Connections 30
- Portal user → React routes: uses
frontend/src/App.jsx - React routes → Home: routes to
frontend/src/App.jsx - React routes → Login and registration: routes to
frontend/src/App.jsx - React routes → Find blood: routes to
frontend/src/App.jsx - React routes → Emergency requests: routes to
frontend/src/App.jsx - React routes → Blood bank directory: routes to
frontend/src/App.jsx - React routes → Interactive map: routes to
frontend/src/App.jsx - React routes → Role dashboards: routes to
frontend/src/App.jsx - React routes → Session and roles: provides auth
frontend/src/App.jsx - Login and registration → Authentication service: registers with
frontend/src/pages/Register.jsx - Session and roles → Authentication service: loads profile
frontend/src/context/AuthContext.jsx - Authentication service → Donor service: completes signup
frontend/src/services/authService.js - Authentication service → Facility and inventory: completes signup
frontend/src/services/authService.js - Find blood → Donor service: searches donors
frontend/src/pages/FindBlood.jsx - Find blood → Facility and inventory: searches facilities
frontend/src/pages/FindBlood.jsx - Emergency requests → Request tracking: submits requests
frontend/src/pages/EmergencyRequest.jsx - Blood bank directory → Facility and inventory: loads facilities
frontend/src/pages/BloodBanks.jsx - Interactive map → Distance calculation: calculates distance
frontend/src/pages/MapView.jsx - Role dashboards → Session and roles: reads user role
frontend/src/dashboards/AdminDashboard.jsx - Role dashboards → Facility and inventory: administers facilities
frontend/src/dashboards/AdminDashboard.jsx - Role dashboards → Request tracking: loads requests
frontend/src/dashboards/AdminDashboard.jsx - Donor service → Supabase client: queries through
frontend/src/services/donorService.js - Facility and inventory → Supabase client: queries through
frontend/src/services/facilityService.js - Request tracking → Supabase client: queries through
frontend/src/services/requestService.js - Authentication service → Supabase client: uses client
frontend/src/services/authService.js - Session and roles → Supabase client: uses client
frontend/src/context/AuthContext.jsx - Supabase client → Supabase Auth: auth operations
- Supabase client → PostgreSQL data: data operations
- Interactive map → OpenStreetMap: renders map tiles
README.md - Find blood → Blood and form helpers: uses blood filters
frontend/src/pages/FindBlood.jsx