Skip to content

Boblee24/interview-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interview Question Generator

An AI-powered tool that generates 3 role-specific interview questions for any job title.

Live demo: [your-deploy-url-here]


Stack

  • React + Vite
  • Groq APIllama-3.1-8b-instant model
  • No backend — runs entirely in the browser

Why Groq?

Groq's inference speed is noticeably faster than most free-tier alternatives, which keeps the loading state brief and the experience snappy. The llama-3.1-8b-instant model is more than capable for structured prompt tasks like this.


Local Setup

1. Clone the repo

git clone https://github.com/YOUR_USERNAME/interview-gen.git
cd interview-gen

2. Install dependencies

npm install

3. Add your Groq API key

Create a .env file in the project root (never commit this):

cp .env.example .env

Then open .env and replace your_groq_api_key_here with your actual key from console.groq.com.

4. Run locally

npm run dev

Deploying to Vercel

  1. Push the repo to GitHub
  2. Import the repo at vercel.com/new
  3. In the Vercel dashboard, go to Settings → Environment Variables
  4. Add VITE_GROQ_API_KEY with your Groq key
  5. Deploy — Vercel handles the rest

⚠️ Note on API key exposure: This app calls the Groq API directly from the browser. For a production app, you'd proxy the request through a backend to keep the key server-side. For this assignment, the free-tier key has no sensitive data attached, so client-side is acceptable.


Project Structure

src/
  App.jsx   — main component + API logic (well-commented)
  App.css   — all styles
  main.jsx  — React entry point

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors