How juniormalinga/west_rand_judo_association_wrja-website works
WRJA is a full-stack association website for public information, member services and committee administration. The main workflow runs from a visitor or member using the React site, through the Express API for protected or persisted actions, to Supabase; outcomes include content, account/session state, payment-proof status and contact confirmation. The graph also preserves the documented chatbot, maps, media and email capabilities. Relationships beyond excerpts are included only where the README or SOURCE INDEX supports them; unsampled internals are represented at their known source paths.
Main entry points: server.js Express application · App.jsx React site and routes · routes/api.js API routes · lib/api.js API client
Components 25
Public website
- React site and routes
src/App.jsx - Public content pages
src/pages - Instructor profiles
src/data/instructors.js - AI chat widget
src/components/ChatWidget.jsx - Interactive maps
src/components/ContactMap.jsx
Member identity
- Session context
src/context/AuthContext.jsx - API client
src/lib/api.js - Auth and access control
server/auth.js
Member and committee services
- Events and competitions
src/pages/EventsPage.jsx - Payment proof pages
src/pages/ProofOfPaymentPage.jsx - Contact enquiries
src/hooks/useEnquiryForm.js - Admin console
src/pages/AdminPage.jsx - Admin management panels
src/components
API and domain logic
- API entry point
api/index.js - Express application
server/server.js - API routes
server/routes/api.js - Content and payment repositories
server - Media and upload handling
server/mediaRepo.js
Persistence and integrations
- Supabase Postgres
- Supabase Storage
- Supabase Auth
- Google Gemini
- Brevo SMTP
- Mapbox GL JS
Other components
- Visitor / member
Connections 28
- Visitor / member → React site and routes: browses
- React site and routes → Public content pages: routes to
src/App.jsx - Public content pages → Instructor profiles: uses profiles
src/data/instructors.js - React site and routes → Events and competitions: routes to
src/App.jsx - Visitor / member → Contact enquiries: submits enquiry
- Contact enquiries → API client: submits message
src/hooks/useEnquiryForm.js - React site and routes → Session context: provides session
src/App.jsx - Session context → API client: requests auth
src/context/AuthContext.jsx - API client → API entry point: calls API
- API entry point → Express application: loads app
api/index.js - Express application → API routes: mounts routes
server/server.js - API routes → Auth and access control: checks access
server/routes/api.js - Auth and access control → Supabase Auth: verifies sessions
server/auth.js - Auth and access control → Supabase Postgres: loads profiles
server/auth.js - API routes → Content and payment repositories: dispatches data actions
server/routes/api.js - Content and payment repositories → Supabase Postgres: reads and writes
- API routes → Media and upload handling: handles media
server/routes/api.js - Media and upload handling → Supabase Storage: stores files
- Events and competitions → Payment proof pages: offers payment flow
src/App.jsx - React site and routes → Admin console: routes admins
src/App.jsx - Admin console → Admin management panels: presents management
- Admin console → API client: manages records
- AI chat widget → Express application: requests chat
- Express application → Google Gemini: generates answers
- API routes → Brevo SMTP: sends confirmations
- Interactive maps → Mapbox GL JS: renders maps
- Express application → Supabase Postgres: uses privileged data access
- Express application → Supabase Storage: uses media storage