How cfgbengaluru24/team-23 works
Project type and purpose
• This is a full-stack web application (“Best Practices Foundation”) whose goal is to train and assess volunteer trainers, record and analyze field data, host a knowledge repository, and manage call-center interactions.
• Frontend: React.js SPA for registration, quizzes, dashboards, video modules.
• Backend: Node.js/Express API handling authentication (JWT), data persistence (MongoDB), quiz logic, SMS service (Twilio), and call-center data ingestion.
File structure
• Top-level:
• backend/ – Node.js service
– config/db.js: MongoDB connection
– middleware/auth.js: JWT verification
– models/*.js: Mongoose schemas (User, Question, Assessment)
– routes/*.js: Express routers (auth, quiz, exotel/SMS)
– server.js: entry point, middleware wiring
• frontend/ – React client
– public/: index.html, app manifest
– src/: core React files (App.js, index.js), Components/ (Landing, Login/Register, Quiz, Dashboard, Results, VideoPlayer)
• Config files: package.json in each tier, .gitignore at root.
• No microservices—monolithic API, single React app.
Key insights from README
• Major modules: Trainer & Volunteer Registration, Modular Courses & Quizzes, Admin Data Management (baseline/endline data, visualization, recommendations), SMS service, Call Center (voice transcription & analysis).
• Tech stack confirmed: React, Node/Express, MongoDB, JWT, Twilio.
Detail
• JWT token issuance on login and token verification middleware.
• Data collections: Users, Questions, Assessments, ProgramData.
• SMS scheduling flow (cron or triggered on events).