FitFlow is an end-to-end, intelligent web platform designed to streamline and elevate the internship placement experience for computer science and engineering students (developed for Universiti Teknikal Malaysia Melaka - UTeM Final Year Project).
FitFlow solves the common disconnect between student skill sets and industry demands by offering:
- Algorithmic Skill Matching: A weighted Jaccard & domain-matching algorithm comparing student skills against real-time internship offerings.
- Interactive Voice & Text AI Interview Prep: A multi-turn AI interviewer powered by OpenAI (
gpt-4o-mini) and Google Gemini (gemini-2.0-flash) with dynamic follow-ups, browser speech recognition, text-to-speech (TTS), and 4-axis performance radar diagnostics. - Company & Market Analytics: Regional internship distribution, skill gap recommendations, and stipend insights.
┌────────────────────────────────────────┐
│ Vercel CDN (Frontend) │
│ React 19 + Vite + Tailwind │
└──────────────────┬─────────────────────┘
│
┌──────────────┴──────────────┐
│ │
▼ ▼
┌────────────────────────────┐ ┌────────────────────────────┐
│ Supabase Cloud │ │ Render (Python API) │
│ PostgreSQL + Auth + RLS │ │ FastAPI + Uvicorn + AI │
└────────────────────────────┘ └─────────────┬──────────────┘
│
┌─────────────┴──────────────┐
│ │
▼ ▼
┌───────────────────────────┐┌───────────────────────────┐
│ OpenAI API (gpt-4o-mini) ││ Google Gemini 2.0 Flash │
└───────────────────────────┘└───────────────────────────┘
-
Frontend:
- Core Framework: React 19, Vite, JavaScript (ESNext)
- Styling & Aesthetics: Vanilla CSS Design Tokens, Glassmorphism, Framer Motion animations
- Voice & Audio Integration: Web Speech API (
SpeechRecognition&speechSynthesis) for hands-free audio interview sessions - Data Visualization: Custom SVG Radar Charts, Metric Badges, Progress Rings
- Notifications:
react-hot-toast
-
Backend API (Python FastAPI):
- Framework: FastAPI, Uvicorn ASGI Server
- Security & Rate Limiting:
slowapi(IP-based token bucket rate limiting), CORS Regex matching - Data Validation:
Pydanticmodels with strict constraints
-
Database & Authentication:
- Database: Supabase PostgreSQL with relational foreign key schemas
- Authentication: Supabase Auth (JWT bearer tokens, session persistence)
- Security: Row Level Security (RLS) policies protecting candidate data
-
Dual AI Failover Engine:
- Primary AI Engine: OpenAI (
gpt-4o-mini/gpt-4o) viahttps://api.openai.com/v1/chat/completions - Fallback AI Engine: Google Gemini AI (
gemini-2.0-flash,gemini-1.5-flash) viagoogle-genaiSDK
- Primary AI Engine: OpenAI (
The Supabase PostgreSQL database consists of 12 core tables:
erDiagram
profiles ||--|| student_profiles : "1-to-1 extension"
profiles ||--o{ user_skills : "has many"
skills ||--o{ user_skills : "linked to"
skills ||--o{ internship_skills : "linked to"
internships ||--o{ internship_skills : "requires"
profiles ||--o{ saved_internships : "saves"
internships ||--o{ saved_internships : "is saved"
profiles ||--o{ matching_results : "receives"
internships ||--o{ matching_results : "evaluated in"
profiles ||--o{ interview_sessions : "starts"
internships ||--o{ interview_sessions : "optionally targets"
interview_sessions ||--o{ interview_messages : "contains"
interview_sessions ||--|| interview_results : "generates"
interview_sessions ||--o{ interview_skill_gaps : "identifies"
| Table Name | Description | Key Fields |
|---|---|---|
profiles |
Core user identity linked to Supabase Auth | id, email, full_name, avatar_url, role |
student_profiles |
Extended candidate academic data | id, phone, university, programme, cgpa, preferred_roles, profile_completed |
internships |
Scraped and curated job postings | id, title, company_name, location, stipend, job_type, description |
skills |
Master skill library | id, name, category |
user_skills |
Junction table mapping candidate skills | user_id, skill_id, proficiency_level |
internship_skills |
Junction table mapping job requirements | internship_id, skill_id, importance_weight |
matching_results |
Precomputed match scores & recommendations | user_id, internship_id, match_score, skill_overlap |
interview_sessions |
Active and historical AI interview sessions | id, user_id, internship_id, interview_type, difficulty, status |
interview_messages |
Multi-turn interview conversation turns | id, session_id, turn_id, role, content |
interview_results |
Final diagnostic performance review | session_id, overall_score, technical_score, feedback_json |
interview_skill_gaps |
Identified skill deficiencies from sessions | session_id, skill_name, recommendation |
Calculates match percentages between a student's profile and available internship postings using a hybrid weighted algorithm:
- Provides instant visual feedback with color-coded compatibility scores (e.g. 95% Match).
- Displays breakdown of matched skills vs. missing skill gaps.
- Role-Tailored First Question: Reads target job title, company name, required skills (
React,Python,SQL), and generates a role-specific opening scenario. - Dynamic Multi-Turn Follow-Ups: Analyzes the candidate's exact previous answer and generates direct technical follow-up questions probing deeper into tools, code logic, or architecture mentioned.
- Voice Speech Recognition & TTS: Candidates can speak their answers directly via microphone (
SpeechRecognition) and listen to interviewer responses via Text-to-Speech (speechSynthesis). - 4-Axis Evaluation Diagnostics: Generates overall scores, breakdown scores (Technical, Problem Solving, Communication, Role Fit), summary feedback, strengths, and targeted improvement actions.
- Interactive location filtering with real-time internship counts per region (e.g. Kuala Lumpur (42), Penang (18), Remote (15)).
- Stipend range filters and category filters (Frontend, Backend, Database, DevOps, AI/ML).
Base Production URL: https://fitflow-wb01.onrender.com
- Endpoint:
POST /api/interviews/session/create - Headers:
Authorization: Bearer <SUPABASE_JWT_TOKEN> - Request Body:
{
"internship_id": "c7a84e91-1234-5678-90ab-cdef12345678",
"custom_role": null,
"max_questions": 3,
"interview_type": "Technical",
"difficulty": "Medium"
}- Response (200 OK):
{
"session_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"first_question": "Welcome Abdalla! For this Frontend Developer role at Grab, how do you manage global state and prevent unnecessary re-renders in a large React + TypeScript application?",
"difficulty": "Medium",
"interview_type": "Technical"
}- Endpoint:
POST /api/interviews/session/{session_id}/question - Headers:
Authorization: Bearer <SUPABASE_JWT_TOKEN> - Request Body:
{
"answer": "I use React.memo and useCallback for component memoization, and Redux Toolkit to manage global state with clean slice architecture."
}- Response (200 OK):
{
"completed": false,
"next_question": "That is a solid approach to state management using Redux Toolkit. Can you explain a scenario where using React.memo might actually introduce performance overhead rather than optimizing it?"
}- Endpoint:
POST /api/interviews/session/{session_id}/evaluate - Headers:
Authorization: Bearer <SUPABASE_JWT_TOKEN> - Response (200 OK):
{
"overall_score": 88,
"technical_score": 90,
"feedback_json": {
"summary": "Demonstrated strong understanding of modern React performance patterns and state management.",
"strengths": ["Clear explanation of Redux Toolkit", "Good awareness of memoization trade-offs"],
"improvements": ["Elaborate more on custom hooks for reusable logic"]
}
}- Node.js v18+ and npm
- Python 3.10+
- Supabase Account & Project
git clone https://github.com/1abdala/FitFlow.git
cd FitFlow
# Install Frontend Dependencies
npm install
# Install Backend Python Dependencies
pip install fastapi uvicorn supabase openai google-genai slowapi python-dotenv pydanticCreate a .env file in the root directory:
# Supabase Configuration
VITE_SUPABASE_URL=https://<YOUR_SUPABASE_PROJECT_ID>.supabase.co
VITE_SUPABASE_ANON_KEY=<YOUR_SUPABASE_ANON_KEY>
SUPABASE_URL=https://<YOUR_SUPABASE_PROJECT_ID>.supabase.co
SUPABASE_SERVICE_KEY=<YOUR_SUPABASE_SERVICE_ROLE_KEY>
# AI Engine Keys
OPENAI_API_KEY=sk-proj-...
GEMINI_API_KEY=AIzaSy...
# API Routing
VITE_API_BASE_URL=http://localhost:8000
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:5174# Terminal 1: Run Frontend Dev Server
npm run dev
# Terminal 2: Run Python FastAPI Backend
python -m uvicorn api.main:app --reload --port 8000Open http://localhost:5173 in your browser.
| Service | Hosting Provider | Deployment Config |
|---|---|---|
| Frontend Web App | Vercel | npx vite build with SPA rewrites and security CSP headers (vercel.json) |
| Backend API | Render.com | Python 3 service (uvicorn api.main:app --host 0.0.0.0 --port $PORT) |
| Database & Auth | Supabase Cloud | PostgreSQL database with Row Level Security (RLS) policies |
- CSP Allowed Domains (
vercel.json): Configuredconnect-srcto allow secure HTTPS/WSS calls to Render and Supabase (connect-src 'self' https: wss:). - CORS Middleware Regex (
api.main.py): Configuredallow_origin_regex=r"https://.*\.vercel\.app|http://localhost:\d+"to allow Vercel origins. - Session Question Bounds: Hard-capped between 1 and 10 questions max to prevent token drain.
- Input Length Limits: Candidate text capped at 5,000 characters.
- SlowAPI Rate Limiter: Enforces per-IP limits (
10 sessions/min,20 answers/min).
Developed by Abdalla Hashim as a solo Final Year Project (FYP) for Universiti Teknikal Malaysia Melaka (UTeM), including full-stack architecture, PostgreSQL database design and integration, matching algorithms, and AI integration. Released under the MIT License.