How uzairbi/uzair_ngo_v17 works
Sahara Jan Kalyan Samiti is a dynamic NGO website with a public information and engagement experience, plus an admin panel and a Node server for managing operational data. Visitors browse programmes, reports, news and events, then can donate or submit forms; admins manage content and submissions. The README documents the major capabilities, while the excerpts show routing, live-data loading, admin dispatch and selected server behavior. Many page and route implementations were not sampled, so some documented subsystem links are shown as unverified.
Main entry points: App.tsx Website routes · index.js HTTP server · useLiveData.ts Live data loader · app.js Admin panel
Components 28
Public website
- Website routes
src/App.tsx - Shared layout
src/components/Layout.tsx - Language context
src/i18n/LangContext.tsx
Content and engagement
- Home experience
src/pages/Home.tsx - Programmes and projects
src/pages/Projects.tsx - Impact and reports
src/pages/Transparency.tsx - News and stories
src/pages/News.tsx - Gallery and media
src/pages/Media.tsx - Events calendar
src/pages/Events.tsx - Live data loader
src/hooks/useLiveData.ts - Programme content
src/data/content.ts - News content
src/data/news.ts - Visitor forms
src/lib/forms.ts - Donation page
src/pages/Donate.tsx
Administration
- Admin panel
admin/js/app.js - Management panels
admin/js - Admin authentication
admin/js/supabase.js
Server and persistence
- HTTP server
server/index.js - API route handlers
server/routes - Session authentication
server/auth.js - SQLite database
server/db.js - HTTP utilities
server/http.js - Payment webhook
server/routes/webhooks.js
Other components
- Visitor
- Razorpay
- Administrator
- Supabase services
src/lib/supabase.ts - Live JSON data
Connections 29
- Visitor → Website routes: browses
src/App.tsx - Website routes → Shared layout: wraps routes
src/App.tsx - Website routes → Home experience: routes to
src/App.tsx - Website routes → Programmes and projects: routes to
src/App.tsx - Website routes → Impact and reports: routes to
src/App.tsx - Website routes → News and stories: routes to
src/App.tsx - Website routes → Gallery and media: routes to
src/App.tsx - Website routes → Events calendar: routes to
src/App.tsx - Home experience → Programme content: renders content
src/pages/Home.tsx - Home experience → Live data loader: loads live data
src/pages/Home.tsx - News and stories → News content: renders stories
src/pages/News.tsx - Events calendar → Live data loader: loads event data
- Live data loader → Live JSON data: fetches
src/hooks/useLiveData.ts - Live data loader → HTTP server: requests public events
src/hooks/useLiveData.ts - Live data loader → Supabase services: loads fallback events
src/hooks/useLiveData.ts - Website routes → Language context: provides language
src/i18n/LangContext.tsx - Visitor → Visitor forms: submits details
README.md - Visitor forms → HTTP server: saves requests
README.md - Visitor → Donation page: opens donation page
README.md - Donation page → Razorpay: opens payment page
README.md - Administrator → Admin panel: signs in
admin/js/app.js - Admin panel → Admin authentication: authenticates with
admin/js/app.js - Admin panel → Management panels: dispatches panels
admin/js/app.js - Admin panel → HTTP server: manages submissions
- HTTP server → Session authentication: checks sessions
server/index.js - HTTP server → API route handlers: dispatches requests
server/index.js - HTTP server → HTTP utilities: sends responses
server/index.js - API route handlers → SQLite database: reads and writes
server/routes/webhooks.js - Payment webhook → SQLite database: upserts donations
server/routes/webhooks.js