How ernestezy/interview_coach_prep works
Purpose and Entry Points
ICP is a career-preparation platform: AI resume analysis/building, mock interviews, job discovery, and administration. The primary server entry point is backend/main.py; it exposes FastAPI APIs and likely serves the static browser client rooted at frontend/index.html. Native clients package the same product for Flutter (mobile_app/lib/main.dart) and Tauri (src-tauri/src/main.rs).
API and Application Boundary
HTTP controllers divide the backend by business capability: authentication/OAuth, resume processing, interview sessions, AI assistance, jobs, and administration. Request/response contracts are centralized in backend/models/schemas.py; shared persistence and security infrastructure sits behind backend/core/db.py and backend/core/security.py.
• backend/controllers/auth_routes.py
• backend/controllers/resume_routes.py
• backend/controllers/interview_routes.py
Identity, Authorization, and Operational Controls
JWT-based user identity is enforced at the API boundary, with OAuth handled as a distinct flow. Admin operations are isolated from regular user workflows. Rate limits, per-day usage restrictions, caching, and audit functionality protect costly AI-backed endpoints and support operational oversight.
• backend/controllers/oauth_routes.py
• backend/controllers/admin_routes.py
• backend/services/rate_limit.py
Resume Intelligence Pipeline
Resume requests flow from upload/builder UI through semantic parsing and AI/RAG analysis, producing scores, extracted skills, structured recommendations, and downloadable PDF reports. The parser and validation stage is the trust boundary for user-provided document content; PDF rendering uses a server-side template.
• backend/services/resume_parser.py
• backend/services/rag_engine.py
• backend/services/pdf_generator.py
Interview and AI Assistance Pipeline
The interview subsystem generates role- and difficulty-specific questions, accepts session interactions, and returns readiness feedback. Shared AI-assistance endpoints use the same Mistral-backed service layer; retry logic isolates transient LLM failures. AI feedback is separated from route handling, keeping controllers as orchestration adapters.
• backend/services/interview_engine.py
• backend/services/ai_feedback.py
• backend/services/mistral_retry.py
Clients and User Flows
The web client is a static HTML/CSS/JavaScript application with page-specific scripts for dashboard, interview, resume builder, account recovery, and jobs. It calls the FastAPI API rather than containing server business logic. The Flutter application is cross-platform; the Tauri wrapper provides a desktop distribution path.
• frontend/static/js/app.js
• frontend/static/js/interview.js
• frontend/static/js/resume_builder.js
Runtime, Data, and Deployment
The runtime is Python/FastAPI with MongoDB accessed through Motor, Mistral AI for generation/analysis, LlamaIndex for RAG, and Careerjet for job listings. Docker, Nginx, and Render deployment definitions support hosted operation; GitHub Actions builds distributable applications.
• Dockerfile
• nginx.conf
• render.yaml
Components 19
Clients
- Static web client · Browser UI for dashboard, jobs, interviews, and resume building.
frontend/index.html - Client API layer
frontend/static/js/app.js - Interview UI
frontend/static/js/interview.js - Resume builder UI
frontend/static/js/resume_builder.js - Flutter client
mobile_app/lib/main.dart - Desktop wrapper
src-tauri/src/main.rs
FastAPI Backend
- API server · HTTP entry point and static-client host.
backend/main.py - User workflows · Auth, resume, interview, jobs, and AI request adapters.
backend/controllers/auth_routes.py - OAuth & admin · Separate identity-provider and privileged operations.
backend/controllers/oauth_routes.py - API contracts
backend/models/schemas.py - Auth & persistence core · JWT enforcement and MongoDB access infrastructure.
backend/core/security.py - Usage controls · Protects costly AI endpoints with limits and quotas.
backend/services/rate_limit.py
AI Pipelines
- Resume intelligence · Validates documents, extracts content, analyzes resumes, and renders PDF reports.
backend/services/resume_parser.py - Interview & feedback · Generates interview questions and readiness feedback.
backend/services/interview_engine.py - LLM retry · Isolates transient Mistral failures.
backend/services/mistral_retry.py
Data & Integrations
- MongoDB
- Mistral & LlamaIndex
- Careerjet
Deployment
- Hosted runtime · Containerized, proxied deployment configuration.
Dockerfile
Connections 22
- Static web client → Client API layer: loads
- Static web client → Interview UI: loads
- Static web client → Resume builder UI: loads
- Client API layer → API server: API calls
- Interview UI → API server: API calls
- Resume builder UI → API server: API calls
- Flutter client → API server: API calls
- Desktop wrapper → Static web client: packages
- API server → User workflows: routes requests
- API server → OAuth & admin: routes privileged flows
- User workflows → API contracts: validates payloads
- User workflows → Auth & persistence core: authenticates users
- OAuth & admin → Auth & persistence core: OAuth and JWT
- User workflows → Resume intelligence: resume requests
- User workflows → Interview & feedback: interview and AI requests
- User workflows → Usage controls: enforces usage
- Auth & persistence core → MongoDB: persists data
- Resume intelligence → Mistral & LlamaIndex: RAG analysis
- Interview & feedback → Mistral & LlamaIndex: generation and feedback
- Interview & feedback → LLM retry: retries failures
- User workflows → Careerjet: job discovery
- Hosted runtime → API server: runs