How abdelbasset-blip/khawa-felkhir works
Khawa Felkhir is a charitable platform with a public-facing showcase and a secured administration area. Visitors browse impact and events, then can submit volunteer registrations or contact messages; administrators sign in to review dashboard information and manage beneficiaries, events, association settings, and team access. The backend exposes public and authenticated API routes, with controllers using Prisma for persistent data. The graph reflects the documented capabilities, but several frontend service and page implementations were not sampled, so some integration links remain unverified.
Main entry points: App.tsx Web app routes · prisma.ts Prisma client · app.ts Express API · api-client.ts API client
Components 28
Web application
- Web app routes
frontend/src/App.tsx - Public showcase
frontend/src/pages/public/HomePage.tsx - Public events and contact
frontend/src/pages/public - Admin dashboard
frontend/src/pages/admin/DashboardOverviewPage.tsx - Beneficiary management
frontend/src/pages/admin/BeneficiairesPage.tsx - Event management
frontend/src/pages/admin/EvenementsPage.tsx - Association settings
frontend/src/pages/admin/SettingsPage.tsx - API client
frontend/src/lib/api-client.ts - Auth workflow
frontend/src/hooks/useAuth.ts - Auth state
frontend/src/store/auth.store.ts
API and routing
- Express API
backend/src/app.ts - Public routes
backend/src/routes/public.routes.ts - Auth routes
backend/src/routes/auth.routes.ts - Beneficiary routes
backend/src/routes/beneficiaire.routes.ts - Event routes
backend/src/routes/evenement.routes.ts - Settings routes
backend/src/routes/settings.routes.ts
Domain workflows
- Public events, signups, contact
backend/src/controllers/public.controller.ts - Beneficiary CRUD and export
backend/src/controllers/beneficiaire.controller.ts - Event CRUD and publishing
backend/src/controllers/evenement.controller.ts - Association and team settings
backend/src/controllers/settings.controller.ts - Social share links
backend/src/utils/shareLinks.ts
Authentication
- Login and sessions
backend/src/controllers/auth.controller.ts - Access verification
backend/src/middlewares/auth.middleware.ts - Token utilities
backend/src/utils/token.utils.ts
Data access
- Prisma client
backend/src/config/prisma.ts - PostgreSQL
Other components
- Visitor
- Administrator
Connections 36
- Visitor → Web app routes: browses
README.md - Administrator → Web app routes: uses
README.md - Web app routes → Public showcase: routes to
frontend/src/App.tsx - Web app routes → Public events and contact: routes to
frontend/src/App.tsx - Web app routes → Admin dashboard: routes to
frontend/src/App.tsx - Web app routes → Beneficiary management: routes to
frontend/src/App.tsx - Web app routes → Event management: routes to
frontend/src/App.tsx - Web app routes → Association settings: routes to
frontend/src/App.tsx - Beneficiary management → API client: uses via API
- Association settings → API client: uses via API
- Public showcase → API client: uses via API
- Auth workflow → API client: calls
frontend/src/hooks/useAuth.ts - Auth workflow → Auth state: updates
frontend/src/hooks/useAuth.ts - API client → Auth state: reads and updates
frontend/src/lib/api-client.ts - API client → Express API: sends API requests
- Express API → Public routes: mounts
backend/src/app.ts - Express API → Auth routes: mounts
backend/src/app.ts - Express API → Beneficiary routes: mounts
backend/src/app.ts - Express API → Event routes: mounts
backend/src/app.ts - Express API → Settings routes: mounts
backend/src/app.ts - Public routes → Public events, signups, contact: dispatches
backend/src/routes/public.routes.ts - Beneficiary routes → Beneficiary CRUD and export: dispatches
backend/src/routes/beneficiaire.routes.ts - Event routes → Event CRUD and publishing: dispatches
backend/src/routes/evenement.routes.ts - Settings routes → Association and team settings: dispatches
backend/src/routes/settings.routes.ts - Auth routes → Login and sessions: dispatches
backend/src/routes/auth.routes.ts - Settings routes → Access verification: requires
backend/src/routes/settings.routes.ts - Access verification → Token utilities: verifies token
backend/src/middlewares/auth.middleware.ts - Access verification → Prisma client: checks user
backend/src/middlewares/auth.middleware.ts - Public events, signups, contact → Prisma client: reads and writes
backend/src/controllers/public.controller.ts - Beneficiary CRUD and export → Prisma client: reads and writes
backend/src/controllers/beneficiaire.controller.ts - Event CRUD and publishing → Prisma client: reads and writes
backend/src/controllers/evenement.controller.ts - Association and team settings → Prisma client: uses
backend/src/controllers/settings.controller.ts - Login and sessions → Prisma client: uses
backend/src/controllers/auth.controller.ts - Event CRUD and publishing → Social share links: builds links
backend/src/controllers/evenement.controller.ts - Public events, signups, contact → Social share links: builds links
backend/src/controllers/public.controller.ts - Prisma client → PostgreSQL: persists data
README.md