How aparna21400/interviewbuddy works
InterviewBuddy is a peer-to-peer mock interview platform organized around the cycle of finding a practice partner, scheduling and conducting an interview, earning or spending credits, and exchanging feedback. Users enter through the React app and its protected dashboard; the Express API routes requests to feature modules backed by MySQL. Authentication uses Firebase tokens, while Google Calendar supports scheduling and meeting links. The README documents the REST boundary and major capabilities; some feature-specific controller connections are not shown in the sampled source, so those links are omitted or marked unverified.
Main entry points: app.js API router · mysql.js MySQL · interviewCon.js Interview scheduling · googleCalendarService.js Calendar service
Components 26
React application
- React routes
frontend/App.jsx - Auth session
frontend/src/context/AuthContext.jsx - Dashboard views
frontend/src/components/Dashboard - Match view
frontend/src/components/Dashboard/Matches.jsx - Schedule view
frontend/src/components/Dashboard/Schedule.jsx - Profile view
frontend/src/components/Dashboard/Profile.jsx - Credits view
frontend/src/components/Dashboard/Credits.jsx - Feedback view
frontend/src/components/Dashboard/Feedback.jsx - Settings view
frontend/src/components/Dashboard/Settings.jsx - REST client
frontend/src/components/lib/api.js
Express API
- API router
backend/app.js - Authentication
backend/modules/auth/authCon.js - Token guard
backend/modules/auth/auth.js - User profiles
backend/modules/users - Skills
backend/Shared/services/skillsRoute.js - MySQL
backend/config/mysql.js
Interview workflows
- Smart matching
backend/modules/matches/matchCon.js - Interview scheduling
backend/modules/Schedule/interviewCon.js - Interview feedback
backend/modules/Feedback - Credit tracking
backend/modules/credits - Availability settings
backend/modules/Setting
Identity and integrations
- Firebase Auth
backend/config/firebase.js - Google OAuth
backend/modules/Google/googleAuth.js - Calendar service
backend/modules/Google/googleCalendarService.js
Other components
- Learner
- Google Calendar
Connections 30
- Learner → React routes: uses
frontend/App.jsx - React routes → Dashboard views: routes to
frontend/App.jsx - Learner → REST client: requests data
- REST client → API router: calls REST API
- API router → Authentication: mounts auth
backend/app.js - API router → User profiles: mounts users
backend/app.js - API router → Smart matching: mounts matches
backend/app.js - API router → Interview feedback: mounts feedback
backend/app.js - API router → Interview scheduling: mounts interviews
backend/app.js - API router → Credit tracking: mounts credits
backend/app.js - API router → Availability settings: mounts settings
backend/app.js - API router → Skills: mounts skills
backend/app.js - Authentication → Firebase Auth: verifies identity
backend/modules/auth/authCon.js - Authentication → MySQL: reads and writes
backend/modules/auth/authCon.js - Token guard → Firebase Auth: verifies tokens
backend/modules/auth/auth.js - Token guard → MySQL: loads user
backend/modules/auth/auth.js - Skills → Token guard: guards routes
backend/Shared/services/skillsRoute.js - Skills → MySQL: reads and writes skills
backend/Shared/services/skillsRoute.js - Smart matching → MySQL: queries matching data
backend/modules/matches/matchCon.js - Interview scheduling → MySQL: stores interview data
backend/modules/Schedule/interviewCon.js - Interview scheduling → Calendar service: creates calendar events
backend/modules/Schedule/interviewCon.js - Google OAuth → Calendar service: handles OAuth
backend/modules/Google/googleAuth.js - Calendar service → MySQL: stores tokens
backend/modules/Google/googleCalendarService.js - Calendar service → Google Calendar: creates events
backend/modules/Google/googleCalendarService.js - Match view → Smart matching: uses matching API
- Schedule view → Interview scheduling: uses scheduling API
- Profile view → User profiles: uses profile API
- Credits view → Credit tracking: uses credits API
- Feedback view → Interview feedback: uses feedback API
- Settings view → Availability settings: uses settings API