How hirukshanan/valluvam works
Valluvam is a nonprofit public website with a protected administration platform. Visitors browse organizational information and submit volunteer, support, or contact forms; administrators authenticate, manage content and submissions, and update settings. The React app routes these experiences to an Express API, whose domain controllers operate on MongoDB-backed records and use Cloudinary for media. The README documents bilingual UI and Turnstile protection; sampled excerpts show some, but not all, of those connections, so unverified links are omitted.
Main entry points: models Domain records · app.js Express API · App.jsx Protected routes · contactController.js Contact submissions
Components 26
Website
- Public routes
client/src/App.jsx - Public pages
client/src/pages - Language context
client/src/context/LanguageContext.jsx - Settings context
client/src/context/SettingsContext.jsx
Administration
- Protected routes
client/src/App.jsx - Authentication state
client/src/context/AuthContext.jsx - Admin authentication
client/src/services/authService.js - Admin pages
client/src/pages - Admin API services
client/src/services
API
- Express API
server/src/app.js - Feature routes
server/src/routes - Authentication logic
server/src/controllers/authController.js - Contact submissions
server/src/controllers/contactController.js - Event management
server/src/controllers/eventController.js - Gallery management
server/src/controllers/galleryController.js - Team management
server/src/controllers/teamController.js - Volunteer submissions
server/src/controllers/volunteerController.js - Support content
server/src/controllers/supportController.js - Organization settings
server/src/controllers/settingsController.js - Dashboard statistics
server/src/controllers/adminDashboardController.js
Data and integrations
- Domain records
server/src/models - Cloudinary media
- Turnstile verification
server/src/utils/turnstile.js - MongoDB
Other components
- Website visitor
- Administrator
Connections 23
- Website visitor → Public routes: visits
client/src/App.jsx - Public routes → Public pages: routes to
client/src/App.jsx - Administrator → Protected routes: opens
client/src/App.jsx - Protected routes → Admin pages: routes to
client/src/App.jsx - Protected routes → Authentication state: protects with
client/src/App.jsx - Authentication state → Admin authentication: authenticates via
client/src/context/AuthContext.jsx - Admin authentication → Express API: requests API
client/src/services/authService.js - Settings context → Express API: loads public settings
- Admin pages → Admin API services: uses services
client/src/pages/AdminGallery.jsx - Admin API services → Express API: requests API
- Express API → Feature routes: mounts routes
server/src/app.js - Authentication logic → Domain records: reads user
server/src/controllers/authController.js - Contact submissions → Domain records: manages messages
server/src/controllers/contactController.js - Event management → Domain records: manages events
server/src/controllers/eventController.js - Gallery management → Domain records: manages albums
server/src/controllers/galleryController.js - Team management → Domain records: manages members
server/src/controllers/teamController.js - Support content → Domain records: manages options
server/src/controllers/supportController.js - Contact submissions → Turnstile verification: verifies token
server/src/controllers/contactController.js - Volunteer submissions → Turnstile verification: verifies token
server/src/controllers/volunteerController.js - Event management → Cloudinary media: uploads media
server/src/controllers/eventController.js - Gallery management → Cloudinary media: uploads media
server/src/controllers/galleryController.js - Team management → Cloudinary media: uploads photos
server/src/controllers/teamController.js - Domain records → MongoDB: persists records