Skip to content

About

AI-powered interview coach built with React (Vite), FastAPI, and OpenAI. Features secure API-key encryption, Supabase integration, and a responsive Tailwind UI. πŸš€ Live Demo: https://interview-copilot-de.vercel.app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

KI-Interview-Coach (SaaS)

Produktionsnahe Web-App: Live-Zoom-Interviews mit Speech2Text (Whisper) + STAR-Antworten (GPT-4o), Auth (Supabase), Zahlungen (Stripe: SEPA, Karte, Klarna).

Stack

  • Frontend: Vite/React, Tailwind-Γ€hnliches CSS, React Router
  • Backend: FastAPI (async, Uvicorn)
  • Auth: Supabase (E-Mail + Google)
  • Zahlung: Stripe (SEPA-Lastschrift, Kreditkarte, Klarna; PCI-DSS-konform, tokenbasiert)
  • AI: OpenAI Whisper + GPT-4o-mini (Speech2Text + STAR-Antworten)

Projektstruktur

interview-copilot-de/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ App.jsx, main.jsx
β”‚   β”œβ”€β”€ context/AuthContext.jsx
β”‚   β”œβ”€β”€ pages/Login.jsx, Dashboard.jsx, Interview.jsx
β”‚   β”œβ”€β”€ components/UpgradeBanner.jsx
β”‚   └── lib/supabase.js
β”œβ”€β”€ backend/main.py      # FastAPI + Auth-Middleware + Stripe
β”œβ”€β”€ backend/requirements.txt
β”œβ”€β”€ .env.example
└── vercel.json

Setup

  1. Dependencies

    npm install
    cd backend && pip install -r requirements.txt
  2. Umgebungsvariablen

    • Projektroot: .env mit VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY (optional: ohne = Demo-Modus, 3 Sessions)
    • Backend: backend/.env mit OPENAI_API_KEY, SUPABASE_JWT_SECRET, STRIPE_SECRET_KEY, STRIPE_PRICE_ID, STRIPE_WEBHOOK_SECRET (siehe .env.example)
  3. Backend starten

    cd backend
    python -m uvicorn main:app --reload --host 127.0.0.1 --port 8000
  4. Frontend starten

    npm run dev

    β†’ http://localhost:3000 (oder 3001 falls 3000 belegt)

Auth (Supabase)

  • /login: E-Mail/Passwort + β€žContinue with Googleβ€œ, DSGVO-Checkbox
  • Zustand: user.isLoggedIn, user.currentPlan (free/pro), user.remainingSessions (z. B. 3 kostenlos)
  • Nach Login β†’ /dashboard
  • GET /api/me: JWT aus Header Authorization oder x-supabase-auth β†’ User-Meta (plan, remaining_sessions)

Zahlung (Stripe)

  • Upgrade-Banner bei remainingSessions ≀ 0: β€žUpgrade to Pro – 19,99 €/Monatβ€œ β†’ Checkout-Button
  • POST /api/create-checkout-session: erstellt Stripe Checkout (SEPA, Karte, Klarna); Redirect zu Stripe
  • POST /api/webhook: Stripe-Webhook setzt nach erfolgreicher Zahlung current_plan: pro, unbegrenzte Sessions
  • Keine Kartendaten im Backend (PCI-DSS-konform)

Features

  • Dark-Stealth-Overlay (z-index: 999999) fΓΌr Zoom/Teams
  • Mikrofon β†’ Speech2Text (Whisper) β†’ STAR-Antwort (GPT-4o-mini)
  • Lebenslauf PDF Drag & Drop (clientseitig), RAG fΓΌr personalisierte Antworten
  • XING/StepStone URL β†’ Fragen extrahieren
  • Session-Limit (Free: 3 Sessions; Pro: unbegrenzt)

Deploy

  • Frontend: Vercel – vercel
  • Backend: Railway/Render – VITE_API_URL im Frontend auf Backend-URL setzen
  • Stripe Webhook: URL z. B. https://your-backend.com/webhook, Signatur mit STRIPE_WEBHOOK_SECRET prΓΌfen

About

AI-powered interview coach built with React (Vite), FastAPI, and OpenAI. Features secure API-key encryption, Supabase integration, and a responsive Tailwind UI. πŸš€ Live Demo: https://interview-copilot-de.vercel.app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages