How azaeeeiiii/gcare works
GCare is a community safety web app. Residents authenticate, view alerts/news, submit location-and-photo incident reports, and track them; admins review, assign, and resolve reports, while volunteers claim assignments and provide proof. Separate capabilities cover ID verification, events, contact, and the hotline-backed assistant. The README documents Express APIs and Supabase services; sampled source confirms several frontend calls and report flows, but not all server routes or persistence details, so unshown links are omitted.
Main entry points: index.js Express API · reports.js Report records and workflow · http.js API transport · App.jsx Route shell
Components 27
Resident experience
- Alerts and landing
src/pages/Landing.jsx - Incident submission
src/pages/Report.jsx - Map and area boundary
src/components/ReportMap.jsx - Service area rules
src/lib/serviceArea.js - Assistant widget
src/components/ChatWidget.jsx - Hotlines and guidance
src/lib/hotlines.js - Resident profile
src/pages/Profile.jsx
Safety operations
- Report records and workflow
src/lib/reports.js - Admin dashboard
src/pages/Admin.jsx - ID verification
src/lib/verification.js - Verification review
src/pages/AdminVerifications.jsx - Alert administration
src/pages/AdminAlerts.jsx - Volunteer administration
src/pages/AdminVolunteers.jsx
Community services
- Community news
src/lib/news.js - Volunteer assignments
src/pages/Volunteer.jsx - Volunteer services
src/lib/volunteer.js - Volunteer events
src/pages/AdminEvents.jsx - Contact messages
src/pages/Contact.jsx - News administration
src/pages/AdminNews.jsx
Application services
- Route shell
src/App.jsx - Sign-in and identity
src/lib/auth.js - Supabase client
src/lib/supabase.js - API transport
src/lib/http.js - Express API
server/index.js - Supabase data and storage
- Chat service
server/chat.js
Other components
- Residents
Connections 32
- Residents → Route shell: opens
README.md - Route shell → Alerts and landing: routes to
src/App.jsx - Route shell → Incident submission: routes to
src/App.jsx - Route shell → Community news: routes to
src/App.jsx - Sign-in and identity → Supabase client: authenticates with
src/lib/auth.js - Sign-in and identity → API transport: requests profile
src/lib/auth.js - API transport → Supabase client: gets session
src/lib/http.js - API transport → Express API: sends API requests
src/lib/http.js - Express API → Supabase data and storage: reads and writes
README.md - Alerts and landing → Sign-in and identity: uses identity
src/pages/Landing.jsx - Alerts and landing → Report records and workflow: loads status
src/pages/Landing.jsx - Community news → API transport: fetches stories
src/lib/news.js - Incident submission → Report records and workflow: submits report
src/pages/Report.jsx - Incident submission → Map and area boundary: selects location
src/pages/Report.jsx - Map and area boundary → Service area rules: checks boundary
src/components/ReportMap.jsx - Report records and workflow → API transport: calls endpoints
src/lib/reports.js - Admin dashboard → Report records and workflow: reviews reports
src/pages/Admin.jsx - Report records and workflow → Express API: requests report actions
src/lib/reports.js - Volunteer assignments → Volunteer services: manages participation
src/pages/Volunteer.jsx - Volunteer assignments → Report records and workflow: submits proof
README.md - Volunteer services → API transport: calls endpoints
src/lib/volunteer.js - Verification review → ID verification: reviews submissions
src/pages/AdminVerifications.jsx - Resident profile → Sign-in and identity: updates account
src/pages/Profile.jsx - News administration → Community news: publishes stories
src/pages/AdminNews.jsx - Alert administration → Express API: manages alerts
README.md - Volunteer administration → Volunteer services: manages volunteers
README.md - Volunteer events → Volunteer services: approves signups
README.md - Contact messages → Express API: sends inquiry
README.md - Assistant widget → Hotlines and guidance: answers locally
src/components/ChatWidget.jsx - Assistant widget → Express API: asks assistant
README.md - Express API → Chat service: delegates chat
server/index.js - Chat service → Supabase data and storage: uses chat service
README.md