How mayank67-tech/interview-preparation-platform works
This is a full-stack AI interview-preparation platform. Users sign up or log in, create role- and topic-based practice sessions, review and manage questions, and request explanations. The frontend routes users through those tasks and calls the Express API; backend controllers handle authentication, AI generation, session/question management, and persistence. The README documents MongoDB and AI integration; sampled code confirms Gemini generation with local fallbacks. Some frontend-to-backend route wiring and unsampled features are represented only at the API level, not as inferred controller calls.
Main entry points: App.jsx App routing · server.js Express server · Dashboard.jsx Session dashboard · InterviewPrep.jsx Practice session view
Components 30
Web application
- App routing
frontend/src/App.jsx - Sign up
frontend/src/pages/Auth/SignUp.jsx - Login
frontend/src/pages/Auth/Login.jsx - Session dashboard
frontend/src/pages/Home/Dashboard.jsx - Practice session view
frontend/src/pages/InterviewPrep.jsx - User context
frontend/src/context/userContext.jsx - Navigation
frontend/src/components/Navbar.jsx - Profile card
frontend/src/components/ProfileInfoCard.jsx - Question list
frontend/src/components/cards/QuestionList.jsx - API client paths
frontend/src/utils/axiosInstance.js - API endpoints
frontend/src/utils/apiPaths.js
API and identity
- Express server
backend/server.js - Authentication routes
backend/routes/authRoutes.js - Authentication
backend/controllers/authControllers.js - JWT verification
backend/middlewares/authMiddleware.js - Session routes
backend/routes/sessionRoutes.js
Interview preparation
- Session management
backend/controllers/sessionControllers.js - Question routes
backend/routes/questionRoutes.js - Question management
backend/controllers/questionControllers.js - AI generation
backend/controllers/aiControllers.js - AI prompts
backend/utils/prompts.js
Persistence and utilities
- Session records
backend/models/session.model.js - Question records
backend/models/question.model.js - User records
backend/models/user.model.js - Database connection
backend/config/db.js - Avatar image storage
backend/utils/cloudinary.js
Other components
- Candidate
- MongoDB
- Google Gemini
- Cloudinary service
Connections 44
- Candidate → App routing: uses
README.md - App routing → Sign up: routes to
frontend/src/App.jsx - App routing → Login: routes to
frontend/src/App.jsx - App routing → Session dashboard: routes to
frontend/src/App.jsx - App routing → Practice session view: routes to
frontend/src/App.jsx - App routing → User context: provides
frontend/src/App.jsx - Sign up → API client paths: submits registration
frontend/src/pages/Auth/SignUp.jsx - Sign up → API endpoints: selects endpoint
frontend/src/pages/Auth/SignUp.jsx - Login → API client paths: sends credentials
frontend/src/pages/Auth/Login.jsx - Login → API endpoints: selects endpoint
frontend/src/pages/Auth/Login.jsx - User context → API client paths: fetches profile
frontend/src/context/userContext.jsx - User context → API endpoints: selects endpoint
frontend/src/context/userContext.jsx - Session dashboard → API client paths: requests sessions
frontend/src/pages/Home/Dashboard.jsx - Session dashboard → API endpoints: selects endpoints
frontend/src/pages/Home/Dashboard.jsx - Session dashboard → Profile card: renders
frontend/src/pages/Home/Dashboard.jsx - Session dashboard → Navigation: renders
frontend/src/pages/Home/Dashboard.jsx - Practice session view → API client paths: manages questions
frontend/src/pages/InterviewPrep.jsx - Practice session view → API endpoints: selects endpoints
frontend/src/pages/InterviewPrep.jsx - Practice session view → Question list: renders
frontend/src/pages/InterviewPrep.jsx - Practice session view → Navigation: renders
frontend/src/pages/InterviewPrep.jsx - Express server → Authentication routes: mounts
backend/server.js - Express server → Session routes: mounts
backend/server.js - Express server → Question routes: mounts
backend/server.js - Express server → AI generation: registers routes
backend/server.js - Authentication routes → Authentication: dispatches
backend/routes/authRoutes.js - Authentication routes → JWT verification: protects routes
backend/routes/authRoutes.js - Session routes → Session management: dispatches
backend/routes/sessionRoutes.js - Question routes → Question management: dispatches
backend/routes/questionRoutes.js - Question routes → JWT verification: protects routes
backend/routes/questionRoutes.js - Authentication → User records: reads and updates
backend/controllers/authControllers.js - Authentication → Avatar image storage: uploads avatar
backend/controllers/authControllers.js - Avatar image storage → Cloudinary service: uploads image
backend/utils/cloudinary.js - JWT verification → User records: loads user
backend/middlewares/authMiddleware.js - Session management → Session records: creates and queries
backend/controllers/sessionControllers.js - Session management → Question records: creates and deletes
backend/controllers/sessionControllers.js - Question management → Question records: manages records
backend/controllers/questionControllers.js - Question management → Session records: updates session
backend/controllers/questionControllers.js - AI generation → AI prompts: builds prompts
backend/controllers/aiControllers.js - AI generation → Google Gemini: generates content
backend/controllers/aiControllers.js - Express server → Database connection: connects database
backend/server.js - Database connection → MongoDB: connects
- Session records → MongoDB: persists
- Question records → MongoDB: persists
- User records → MongoDB: persists