PrepPal is a full-stack AI-driven mock interview platform that simulates realistic interview conversations using Google's Gemini API. It dynamically generates follow-up questions based on user responses and provides feedback to help candidates prepare effectively.
Explanation:
- The user answers a question through the interface.
- The response is sent to the backend API route.
- The backend forwards the message to Gemini API.
- A follow-up question is generated and returned.
- The new question is rendered and React state is updated.
- Real-time mock interview experience with dynamic question generation
- Contextual follow-up questions powered by Gemini API
- One-question-at-a-time interface for focused answering
- Seamless session flow with auto-generated feedback
- Responsive, minimal UI built for clarity and performance
- Frontend: React.js, Next.js, Tailwind CSS
- Backend: Node.js (via Next.js API routes)
- AI: Google Gemini API
Prerequisites:
- Node.js (v16 or later)
- Gemini API key
Steps:
git clone https://github.com/Shlokmonster/PrepPal-AI-Powered-Interview-Simulator.git
cd PrepPal-AI-Powered-Interview-Simulator
npm install
cp .env.example .env
# Add your Gemini API key to the .env file
npm run devApp will run at http://localhost:3000.
/pages
index.js # Main interview UI
/api
interview.js # Backend API route to handle GPT interaction
/components
QuestionBox.jsx # Renders current question
AnswerInput.jsx # Accepts user response
/lib
gemini.js # Gemini API wrapper
- User starts a new interview session
- Initial question is generated
- User submits answers in real-time
- Gemini API returns follow-up questions based on context
- Process continues until the user ends the session
This project is licensed under the MIT License. See LICENSE file for details.
