π§ Skill Gap Analyser β Backend (Pathfinder AI)
This repository contains the backend service for Pathfinder AI, responsible for analyzing a userβs skills against a chosen career and returning missing skills, recommendations, and learning guidance.
The backend is built using Flask and deployed on Render using Gunicorn.
π Live API
π Base URL:
https://skill-gap-analyser-ves3.onrender.com
π Health Check:
GET /
π οΈ Tech Stack
π Python 3
πΆοΈ Flask
π Flask-CORS
π Gunicorn (Production server)
βοΈ Render (Deployment)
π Project Structure
skill-gap-analyser/
β
βββ app.py # Main Flask application
βββ requirements.txt # Python dependencies
βββ .gitignore
βββ README.md
β
βββ venv/ # Virtual environment (ignored in git)
βββ pycache/ # Python cache (ignored in git)
π API Endpoints
β
Health Check
GET /
Response
{
"status": "Backend is running"
}
π― Skill Gap Analysis
POST /api/skill-gap
Request Body
{
"career": "Data Scientist",
"skills": ["python", "statistics"]
}
Response
{
"career": "Data Scientist",
"required_skills": [
"python",
"statistics",
"machine learning",
"sql",
"data visualization"
],
"known_skills": ["python", "statistics"],
"missing_skills": [
"machine learning",
"sql",
"data visualization"
],
"completion_percentage": 40
}
π§ Skill Analysis Logic
Career is mapped to a predefined skill set
User-provided skills are normalized
Missing skills are calculated
Completion percentage is computed
JSON response sent to frontend
π CORS Configuration
CORS is enabled to allow frontend access:
from flask_cors import CORS
CORS(app)
This allows requests from:
Vercel frontend
Localhost (development)
π§ͺ Run Locally
1οΈβ£ Clone the repository
git clone https://github.com/as4aditis-cmd/skill-gap-analyser.git
cd skill-gap-analyser
2οΈβ£ Create virtual environment
python -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # Windows
3οΈβ£ Install dependencies
pip install -r requirements.txt
4οΈβ£ Run Flask app
python app.py
Server will run on:
http://localhost:5000
π Production Deployment (Render)
Start Command
gunicorn app:app
Instance Type
Free tier supported
No paid services required
π¦ requirements.txt
flask
flask-cors
gunicorn
π§© Environment Variables
No required environment variables for MVP.
(Ready for future AI keys if needed)
π§ Future Enhancements
π€ AI-based skill recommendations (LLM integration)
π Learning resource suggestions
π§βπ Personalized roadmap generation
π Authentication & user-based analysis
π Skill proficiency scoring
π©βπ» Author
Aditi Sharma
Backend & Full Stack Developer
GitHub: https://github.com/as4aditis-cmd
Project: Pathfinder AI
β Support
If you find this useful:
β Star the repository
π§ Share feedback
π Fork & build on top of it
π βIdentify your gaps. Build your skills. Shape your future.β