Skip to content

code-differently/26q1-team4-capstone

Repository files navigation

🧠 NODUS — DEVELOPMENT HANDOFF (AI INTEGRATION PHASE)

🚨 IMPORTANT CONTEXT

This is the final handoff for continuing development of the Nodus Workforce Intelligence System.

⚠️ CURRENT STATE:

  • Frontend is fully built and deployed-ready (Vercel)
  • Backend is fully built but NOT deployed yet (will be deployed on Railway)
  • PostgreSQL database is fully configured and working
  • AI integration layer is NOT built yet (THIS IS THE MAIN TASK)

🌐 TARGET DEPLOYMENT ARCHITECTURE

Final system will run as:

Frontend (Vercel) ↓ Backend API (Railway) ↓ PostgreSQL Database ↓ OpenAI API (AI Intelligence Layer)


🧱 WHAT IS COMPLETED

✅ FRONTEND (REACT + VERCEL READY)

Frontend is fully built and production-ready.

Pages:

  • Landing page (interactive network visualization)
  • Login / Register
  • Job Seeker Dashboard
  • Employer Dashboard
  • Training Provider Dashboard
  • Search Page (AI-ready UI already built)
  • Directory Page (training / employers / talent)
  • Profile Page (skills input system)
  • History Page (AI results display UI)

Status:

✔ Fully functional UI
✔ Uses mock services (temporary only)
✔ Already designed to consume real backend APIs


✅ BACKEND (SPRING BOOT — NOT DEPLOYED YET)

Backend is fully implemented and tested locally.

✔ Authentication System

  • Login / registration
  • Role-based access:
    • JOB_SEEKER
    • EMPLOYER
    • TRAINING_PROVIDER
  • Stored in PostgreSQL

✔ Job System

  • Job postings stored in DB
  • Search API working
  • Structured job data:
    • title
    • company
    • location
    • required skills
    • timestamp (data freshness tracking)

✔ Verified via Postman


✔ Training Provider System

  • Training programs stored
  • Skills covered mapping
  • Directory API implemented

✔ Employer System

  • Employer job postings
  • Talent search endpoint (mock logic only)

✔ Skill Profile System

  • User skills stored
  • Target role stored
  • Experience level stored
  • Discoverability flag

✔ Recommendation + History System

  • Endpoints exist
  • PostgreSQL persistence works
  • Recommendation objects stored correctly

⚠️ BUT: Recommendation logic is currently MOCK ONLY — no AI is used yet


🧪 BACKEND TESTING STATUS

✔ Postman tested
✔ PostgreSQL fully working
✔ Service/repository/controller layers stable
✔ No structural backend issues


⚠️ WHAT IS STILL MISSING (CRITICAL)

🚨 AI / INTELLIGENCE LAYER (MAIN TASK)

This is the ONLY missing core component.

Currently:

  • Recommendation system = mock data
  • Skill gap analysis = NOT implemented
  • Training alignment intelligence = NOT implemented
  • Employer matching intelligence = NOT implemented

🤖 WHAT NEEDS TO BE BUILT (AI INTEGRATION)

🔥 CORE TASK: OPENAI API INTEGRATION

We will use OpenAI (or equivalent LLM API) to generate intelligence.


💡 OPENAI API USAGE

We will integrate OpenAI API key into Spring Boot.

IMPORTANT:

  • Requires ~$5 minimum credit depending on OpenAI billing setup
  • This is expected and fine for hackathon/demo usage
  • Only inference calls (no training)

🧠 ALTERNATIVE OPTIONS (IF NEEDED)

If OpenAI is not preferred:

  • Anthropic Claude API
  • Google Gemini API
  • Any LLM API that supports structured responses

BUT: OpenAI is preferred for fastest Spring Boot integration.


⚙️ WHAT YOU NEED TO BUILD

🔴 1. AI SERVICE LAYER (SPRING BOOT)

Create:

AiRecommendationService

This service will:

  • Collect backend data
  • Build AI prompts
  • Call OpenAI API
  • Parse response
  • Store result in PostgreSQL

STEP 1 — DATA COLLECTION

Example inputs:

  • User skills
  • Selected job postings
  • Training programs (optional)

STEP 2 — PROMPT ENGINEERING

Example (Job Seeker):

User Skills:

  • Java
  • SQL
  • Spring Boot

Job Requirements:

  • Java
  • SQL
  • Python
  • AWS

TASK:

  1. Identify skill gaps
  2. Calculate match percentage
  3. Provide explanation
  4. Suggest learning path
  5. Recommend training programs

STEP 3 — OPENAI API CALL

Send:

  • system prompt (defines AI behavior)
  • user prompt (data above)

STEP 4 — RESPONSE FORMAT

Expected output:

{ "matchScore": 72, "missingSkills": ["Python", "AWS"], "recommendation": "Focus on Python first...", "trainingSuggestions": [ "AWS Bootcamp", "Python Data Engineering Course" ] }


STEP 5 — STORE IN DATABASE

Save:

  • userId
  • jobIds
  • AI response JSON
  • timestamp

This powers History page + analytics later


🔴 2. REPLACE MOCK SYSTEMS

Frontend currently uses:

const USE_MOCK = true

You must:

  • remove mock logic
  • replace with real API calls to Railway backend

Target endpoint:

POST /api/recommendations/generate


🔴 3. CORE AI USE CASES

👨‍💻 JOB SEEKER FLOW (PRIORITY #1)

User selects jobs → backend sends data → AI returns:

  • skill gaps
  • match score
  • roadmap

🏫 TRAINING PROVIDER FLOW

Compare: curriculum vs job market demand

Output:

  • missing skills
  • alignment score
  • curriculum gaps

🏢 EMPLOYER FLOW

Match: job requirements vs candidates

Output:

  • ranked candidates
  • skill overlap score
  • pipeline readiness

🔗 HOW SYSTEM CONNECTS

CURRENT (MOCK):

Frontend → Mock Service → Fake Data

FINAL SYSTEM:

Frontend (Vercel) ↓ Spring Boot API (Railway — NOT DEPLOYED YET) ↓ PostgreSQL Database ↓ OpenAI API ↓ AI Response ↓ Frontend UI


🧠 FRONTEND STATUS (IMPORTANT)

Frontend is already AI-ready:

✔ Search Page:

  • AI response panel already exists

✔ History Page:

  • expects real AI results

✔ Profile Page:

  • collects skills for AI input

✔ Dashboard Pages:

  • already structured for AI insights

🚨 FINAL OBJECTIVE

Transform system from:

static workforce data platform

TO

real-time AI workforce intelligence engine


🧭 PRIORITY ORDER

  1. Build OpenAI integration in Spring Boot
  2. Create prompt engineering system
  3. Replace mock recommendation service
  4. Connect frontend → backend APIs
  5. Test full system end-to-end

⚡ SUCCESS CRITERIA

System is complete when:

  • User selects jobs
  • AI analyzes skill gaps
  • Returns explainable recommendation
  • Saves to PostgreSQL
  • History page displays AI output
  • Fully working via Vercel + Railway

🧠 FINAL NOTE

Everything except AI integration is complete.

This phase is ONLY:

Make the system intelligent using OpenAI.

Focus ONLY on:

  • AI service layer
  • prompt engineering
  • API integration
  • backend wiring

Do NOT modify frontend or backend architecture unless required for AI integration.

Releases

No releases published

Packages

 
 
 

Contributors