How cesar0202/cv-coach-ai works
Purpose and Runtime
CV Coach AI is a client-side React application for CV evaluation and AI-led interview simulation. It runs as a Vite single-page application; the browser handles CV input, UI state, and Gemini API requests. No backend, database, or server-side persistence appears in the repository.
Entry points:
• index.html mounts the SPA.
• src/main.jsx initializes React.
• src/App.jsx composes the application experience.
Application Shell and Navigation
src/App.jsx is the top-level orchestration boundary, assembling page sections and likely owning cross-section state or interactions. The user-facing shell is separated into:
• src/components/Navbar.jsx
• src/components/Hero.jsx
• src/components/Footer.jsx
This structure indicates a landing-page-style flow rather than route-based application modules.
CV Input and Analysis Boundary
src/components/UploadSection.jsx is the primary functional entry point for candidate data. Per the README, it supports drag-and-drop PDF/Word upload and direct CV text entry.
The intended data flow is:
1. User supplies a document or CV text in src/components/UploadSection.jsx.
2. Content remains in browser memory.
3. The application sends relevant text to Google Gemini for scoring, feedback, strengths, improvement areas, and keyword recommendations.
4. Results are rendered in the same client session, without an external application database.
File parsing, Gemini request construction, and result display are not separately visible in the supplied tree, so they are likely colocated in src/components/UploadSection.jsx and/or src/App.jsx.
Interview Experience
The README describes a live interview chat that adapts questions to CV experience and projects. No dedicated interview component is present in the tree; its implementation is therefore likely embedded in:
• src/components/UploadSection.jsx
• src/App.jsx
Gemini (gemini-2.5-flash) is the external intelligence boundary. The browser uses VITE_GEMINI_API_KEY, making API-key exposure and client-side request handling an important architectural constraint.
Informational and Engagement Components
Supporting sections explain the product and provide external/social navigation:
• src/components/HowItWorks.jsx
• src/components/SocialSidebar.jsx
• src/components/Hero.jsx
These components should remain presentation-oriented and should not own CV analysis or interview-session logic.
Styling and Build Infrastructure
Styling is split between application CSS and Tailwind/PostCSS configuration:
• src/index.css
• src/App.css
• tailwind.config.js
Vite provides development serving and production bundling:
• vite.config.js
• package.json
The production artifact is a static frontend that requires browser network access to Google Gemini; there is no repository evidence of deployment infrastructure, authentication, API proxying, or persistent storage.
Primary Control Flow
The expected user path is: landing/navigation → explanation of workflow → CV upload or text entry → Gemini-powered analysis → optional contextual interview interaction → footer/social exits. src/App.jsx defines the composition boundary, while src/components/UploadSection.jsx is the core workflow boundary and Gemini is the sole material external service.
Main entry points: App.jsx Application shell · UploadSection.jsx CV workflow · Navbar.jsx Navigation · vite.config.js Vite build
Components 18
Browser SPA
All application state and AI requests run client-side.
- HTML mount
index.html - React bootstrap
src/main.jsx - Application shell · Composes the experience and coordinates core interactions.
src/App.jsx - CV workflow · Accepts CV files or text and likely hosts analysis, results, and interview chat.
src/components/UploadSection.jsx - Session memory · CV content and results remain in the active browser session.
- Gemini API key · VITE_GEMINI_API_KEY is exposed to browser-side requests.
Experience Sections
Presentation and engagement components.
- Navigation
src/components/Navbar.jsx - Hero
src/components/Hero.jsx - How it works
src/components/HowItWorks.jsx - Footer
src/components/Footer.jsx - Social sidebar · Provides external social navigation.
src/components/SocialSidebar.jsx
Build & Delivery
Static Vite frontend tooling.
- Application styles
src/index.css - Shell styles
src/App.css - Tailwind config
tailwind.config.js - Vite build · Serves development and produces the static production bundle.
vite.config.js - Package manifest
package.json - Static frontend · Requires browser network access to Gemini; no backend or persistence is present.
Other components
- Google Gemini · gemini-2.5-flash provides CV analysis and contextual interview responses.
Connections 21
- HTML mount → React bootstrap: loads
- React bootstrap → Application shell: renders
- Application shell → Navigation: composes
- Application shell → Hero: composes
- Application shell → How it works: composes
- Application shell → CV workflow: hosts core flow
- Application shell → Footer: composes
- Application shell → Social sidebar: composes
- CV workflow → Session memory: stores CV and session results
- CV workflow → Google Gemini: sends CV context; receives analysis and questions
- Gemini API key → Google Gemini: authorizes browser request
- Hero → CV workflow: directs candidate to workflow
- Navigation → How it works: navigates to
- Navigation → CV workflow: navigates to
- Social sidebar → Footer: supports external exits
- Package manifest → Vite build: defines tooling
- Vite build → Static frontend: bundles
- Tailwind config → Vite build: configures styling build
- Application styles → Application shell: styles
- Shell styles → Application shell: styles
- Static frontend → HTML mount: delivers