How k-nilesh04/645-running-club works
645 Run Club is a React client backed by an Express/MongoDB API for club members and administrators. Members authenticate, verify accounts, manage profiles and memberships, and register for runs; organizers administer runs and attendance, while admins manage announcements and chatbot knowledge. The chatbot filters questions, retrieves verified club knowledge, and can use Gemini for responses. The README documents broad product capabilities, while the excerpts and source index establish only some internal calls; unsampled implementation links are omitted where evidence is insufficient.
Main entry points: index.js REST API server · App.jsx Web app · api.js API client · adminController.js Admin operations
Components 32
Member web client
- Web app
frontend/src/App.jsx - API client
frontend/src/api/api.js - Sign-in and signup
frontend/src/pages/Auth.jsx - Profile
frontend/src/pages/Profile.jsx - Run registration
frontend/src/pages/RegisterRun.jsx - Admin dashboard
frontend/src/pages/AdminDashboard.jsx - Chat widget
frontend/src/components/chatbot/ChatbotWidget.jsx - Knowledge editor
frontend/src/components/chatbot/ChatbotKnowledgeAdmin.jsx
Identity and profiles
- Authentication
backend/controller/authController.js - Email verification
backend/controller/verificationController.js - Email delivery
backend/utils/emailSender.js - Profile management
backend/controller/profileUpdate.js - User records
backend/models/user.model.js
Club operations
- Membership and payments
backend/controller/paymentController.js - Membership records
backend/models/membership.model.js - Payment records
backend/models/payment.model.js - Run registration
backend/controller/runregistration.js - Run records
backend/models/run.model.js - Attendance records
backend/models/attendance.model.js - Announcements
backend/models/announcement.model.js
Administration
- Admin operations
backend/controller/adminController.js - Dashboard summary
backend/utils/adminDashboard.js
Club chatbot
- Chat API
backend/controller/chatbotController.js - Knowledge retrieval
backend/services/chatbotKnowledgeService.js - Knowledge entries
backend/models/chatbotKnowledge.model.js - Gemini service
backend/services/geminiService.js
Other components
- Member
- Administrator
- REST API server
backend/index.js - MongoDB
- Email provider
- Gemini API
Connections 42
- Member → Web app: uses
README.md - Administrator → Web app: uses
README.md - Web app → Sign-in and signup: routes to
frontend/src/App.jsx - Web app → Profile: routes to
frontend/src/App.jsx - Web app → Run registration: routes to
frontend/src/App.jsx - Web app → Admin dashboard: routes to
frontend/src/App.jsx - Web app → Chat widget: renders
frontend/src/App.jsx - Sign-in and signup → API client: calls
frontend/src/pages/Auth.jsx - Sign-in and signup → Email verification: verifies signup
README.md - Profile → API client: calls
frontend/src/api/api.js - Run registration → API client: calls
frontend/src/api/api.js - Admin dashboard → API client: calls
frontend/src/pages/AdminDashboard.jsx - Admin dashboard → Knowledge editor: renders
frontend/src/pages/AdminDashboard.jsx - Knowledge editor → API client: calls
frontend/src/api/api.js - Chat widget → API client: sends messages
frontend/src/components/chatbot/ChatbotWidget.jsx - API client → REST API server: requests
README.md - REST API server → Authentication: routes requests
backend/index.js - REST API server → Email verification: routes requests
backend/index.js - REST API server → Profile management: routes requests
backend/index.js - REST API server → Run registration: routes requests
backend/index.js - REST API server → Membership and payments: routes requests
backend/index.js - REST API server → Admin operations: routes requests
backend/index.js - REST API server → Chat API: routes requests
backend/index.js - Authentication → User records: reads and writes
backend/controller/authController.js - Email verification → User records: creates users
backend/controller/verificationController.js - Email verification → Email delivery: sends email
backend/controller/verificationController.js - Email delivery → Email provider: delivers mail
README.md - Profile management → User records: manages profiles
README.md - Membership and payments → Membership records: reads and writes
backend/controller/paymentController.js - Membership and payments → Payment records: creates and updates
backend/controller/paymentController.js - Run registration → Run records: uses runs
README.md - Run registration → Attendance records: tracks registration
README.md - Admin operations → Run records: reads runs
backend/controller/adminController.js - Admin operations → Attendance records: reads and updates
backend/controller/adminController.js - Admin operations → Membership records: reads memberships
backend/controller/adminController.js - Admin operations → Dashboard summary: summarizes attendance
backend/controller/adminController.js - Admin operations → Announcements: manages announcements
README.md - Chat API → Knowledge retrieval: filters and retrieves
backend/controller/chatbotController.js - Chat API → Knowledge entries: reads and writes
backend/controller/chatbotController.js - Chat API → Gemini service: requests answer
backend/controller/chatbotController.js - Gemini service → Gemini API: generates response
README.md - REST API server → MongoDB: connects
backend/index.js