Inspiration
We wanted a single place where a student or junior professional could upload a CV, see where they stand, discover relevant jobs, get a learning roadmap, and practice interviews – without toggling between dozens of separate tools. The pandemic showed us how remote‑first job searching had become the norm, yet the ecosystem remained fragmented. Combining generative AI (Gemini) with real‑time skill analysis felt like the perfect way to give users a truly personalized, data‑driven career coach.
What it does
CV Analyzer – parses a PDF, extracts the user’s skills, and stores the resulting profile in Firestore. (UI preview unavailable)
Benchmark – compares the user’s skill set against 20 industry‑standard reference profiles and displays the results as a radar chart. (UI preview unavailable)
Job Matching – vectorises 12 mock job offers with TF‑IDF, computes cosine‑similarity scores, and ranks the most relevant jobs for the user.
Career Coach – provides a multi‑turn chat powered by Gemini in the cloud, with a fallback to the on‑device Gemini Nano when the user’s hardware can run it.
Learning Roadmap – generates a deterministic weekly learning plan based on the user’s missing skills, showing checkboxes and a progress bar for each week.
Interview Simulator – creates role‑specific interview questions, evaluates the user’s answers against a rubric, and stores the session history.
Dashboard – shows live key‑performance indicators retrieved from Firestore and performs a health‑check of the FastAPI backend service.
How we built it
Frontend (React + Vite)
Project structure includes components, context providers for authentication and AI state, page modules for each feature, service layers for API calls, storage helpers (IndexedDB and Firestore), and utility functions (benchmark engine). Build command: npm run build creates the production assets in the dist/ folder. Deployment: firebase deploy --only hosting pushes the static files to Firebase Hosting (https://careerpilot-ai-37f74.web.app).
Backend (FastAPI + Python)
Organized under backend/app with a main.py FastAPI instance, configuration handling CORS origins, Firebase JWT verification, Pydantic schemas for request/response models, and service modules for CV parsing (PyMuPDF), job matching (TF‑IDF), roadmap generation, and interview evaluation. Tests written with pytest; all five integration tests (health, auth, CV upload, job matching, roadmap + interview) pass. Containerised with a Dockerfile that runs uvicorn app.main:app --host 0.0.0.0 --port $PORT. Deployed on Render as a free‑tier web service (https://careerpilotai-ci6z.onrender.com). AI Integration
Cloud Gemini (gemini‑2.5‑flash) accessed via Firebase AI Logic for the Career Coach. Optional on‑device Gemini Nano integration handled by LocalCareerAIService; the app detects hardware capability and falls back to cloud inference when needed.
CORS & Environment
Allowed origins are defined centrally in backend/app/config.py and mirrored in the frontend .env variable VITE_API_BASE_URL.
Challenges we ran into
Node v26 conflicted with Firebase CLI requirements; solved by adjusting the PATH and using npm.cmd instead of the blocked npm.ps1. Managing CORS between the Firebase‑hosted frontend and the Render‑hosted backend required a single source of truth for allowed origins. Gemini Nano could not run on all hardware; implemented graceful detection and fallback to cloud Gemini with a user‑friendly message. Bundle size exceeded 500 KB for some chunks; introduced Rollup manualChunks to split firebase and react‑vendor into separate files. Render free tier suspends idle services; added a lightweight “ping” request to /api/health every ten minutes during development to keep the service warm. Keeping the Docker image small on Render; used a slim python:3.13‑slim base image and installed only required wheels.
Accomplishments that we're proud of
End‑to‑end AI‑driven workflow from raw PDF to a personalized weekly learning plan, all in a single UI. Zero‑cost deployment: Firebase Spark (free) for the frontend and Render free tier (no credit‑card required) for the backend. Full integration testing with pytest covering health, authentication, CV processing, job matching, and interview endpoints. Responsive, mobile‑first design with offline support via IndexedDB caching. Clean, modular codebase that separates UI, state management, API services, and business logic, making future extensions straightforward.
What we learned
Hybrid AI pipelines that combine cloud and on‑device models need explicit fallback logic and transparent user consent. Cross‑origin security is easiest when all allowed origins are stored in environment variables and referenced by both front‑ and back‑end. A minimal Docker environment can comfortably host a FastAPI service on Render’s free tier, even with the data‑science libraries we depend on. Progressive enhancement (e.g., IndexedDB cache) improves UX on flaky networks without sacrificing functionality.
What's next for CareerPilot Ai
Implement server‑side rendering with Next.js to improve SEO and pre‑fetch initial data. Allow users to add custom skill tags and expand the TF‑IDF vector space dynamically. Switch the Coach chat to a WebSocket‑based Gemini Live session for real‑time interaction. Provide streaming interview feedback using the Gemini Live API, scoring answers token‑by‑token as the user speaks. Add multilingual support by integrating translation pipelines (Gemini Flash + Google Translate) so non‑English speakers can use the platform.