This app runs a mock interview based on your resume and gives feedback at the end.
- Frontend: React + Vite (in
client/) - Backend: Node.js + Express (in
server/) - AI Provider: Groq API key (required)
Install these first:
- Git
- Node.js (LTS) from https://nodejs.org
After installation, open Terminal and check:
git --version
node --version
npm --version---PI
git clone <your-repo-url>
cd interviewer-agentReplace
<your-repo-url>with your actual GitHub repo URL.
- Go to https://console.groq.com
- Sign in / create account
- Open API Keys page
- Click Create API Key
- Copy the key (it starts with
gsk_...)
Keep this key private. Do not share it publicly.
Open server/.env and make sure it looks like this:
GROQ_API_KEY=your_gsk_key_here
PORT=5000Important:
- If
GEMINI_API_KEYexists inserver/.env, remove it or leave it empty if you want to use Groq only. - Never commit real API keys to GitHub.
Create client/.env for local development:
VITE_DEV_API_PROXY_TARGET=http://localhost:5000Optional: if your frontend and backend are deployed on different domains, set this in your frontend environment:
VITE_API_BASE_URL=https://your-backend-domain.comBehavior:
- If
VITE_API_BASE_URLis set, frontend requests go directly to that backend URL. - If
VITE_API_BASE_URLis not set, frontend uses relative/api/...calls (works with Vite proxy in local dev).
Run these commands from project root:
cd server
npm install
cd ../client
npm installYou need 2 terminals open.
cd interviewer-agent/server
npm startYou should see something like:
Interviewer API running on http://localhost:5000
cd interviewer-agent/client
npm run devOpen the URL shown in terminal (usually http://localhost:5173).
- Enter your target job role
- Upload resume PDF (or paste resume text)
- Answer interview questions
- Submit all answers
- View AI-generated interview feedback/results
- Check
server/.envexists - Confirm
GROQ_API_KEYis set and starts withgsk_ - Restart backend after editing
.env
- Make sure backend is running on port
5000 - Confirm frontend is running from
client/withnpm run dev - If frontend/backend are on different domains, set
VITE_API_BASE_URLin frontend env - If you see
JSON.parse: unexpected character, frontend is likely receiving HTML from the frontend host instead of backend JSON; setVITE_API_BASE_URLand redeploy frontend
- Change
PORTinserver/.env(for examplePORT=5001) - If changed, set
VITE_DEV_API_PROXY_TARGETinclient/.env(for examplehttp://localhost:5001)
If you accidentally exposed an API key anywhere, revoke it in Groq dashboard and create a new one immediately.