Discover your career path. Get personalized recommendations. Build your learning roadmap.
Life Compass is a full-stack web application that helps students and graduates navigate their career journey using AI. Answer a few questions about your interests and education, get career recommendations powered by OpenAI, and generate a step-by-step learning roadmap tailored to your goals.
- Career Assessment — Multi-step guided quiz covering location preference, career category, education level, and personal interests
- AI Career Recommendations — OpenAI-powered suggestions with match percentages based on your profile
- Learning Roadmap Generator — Personalized week-by-week learning paths with tools, projects, courses, and certifications
- Roadmap History — Save, view, and delete your previously generated roadmaps
- Authentication — JWT-based login/signup with password reset via OTP email
- 12 Career Categories — From Engineering & Tech to Arts, Law, Sports, and more (India + International)
| Layer | Technology |
|---|---|
| Frontend | React (Vite), React Router, Axios, Lucide Icons |
| Backend | Python, Flask, Flask-JWT-Extended, Flask-SQLAlchemy |
| Database | SQLite |
| AI | OpenAI GPT-3.5 Turbo |
| Auth | JWT + bcrypt password hashing |
| SMTP (Gmail) for OTP-based password reset |
- Node.js (v18+)
- Python 3.9+
- An OpenAI API key
- A Gmail account (for password reset emails)
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtCreate a .env file in the backend/ directory:
OPENAI_API_KEY=your_openai_api_key
JWT_SECRET_KEY=your_jwt_secret_key
SENDER_EMAIL=your_gmail@gmail.com
SENDER_EMAIL_PASSWORD=your_gmail_app_passwordNote: Use a Gmail App Password, not your regular Gmail password.
Start the backend:
python app.pyThe API runs at http://localhost:5000.
cd frontend
npm install
npm run devThe app runs at http://localhost:5173.
career_guidance_site/
├── backend/
│ ├── app.py # Flask app — all routes and models
│ └── .env # Environment variables (not committed)
│
└── frontend/
└── src/
├── components/
│ ├── assessment/ # Multi-step career assessment flow
│ ├── roadmap/ # Roadmap generator + history
│ ├── Navbar.jsx
│ ├── ForgotPassword.tsx
│ └── ResetPassword.tsx
├── pages/
│ ├── Home.jsx
│ ├── Login.jsx
│ ├── Signup.jsx
│ └── Purpose.jsx
└── App.jsx
| Method | Endpoint | Description | Auth |
|---|---|---|---|
| POST | /auth/register |
Register a new user | ❌ |
| POST | /auth/login |
Login and receive JWT | ❌ |
| POST | /auth/forgot-password |
Send OTP to email | ❌ |
| POST | /auth/reset-password |
Reset password with OTP | ❌ |
| GET/PUT | /auth/profile |
Get or update user profile | ✅ |
| GET | /purpose/categories |
Get career categories by location | ❌ |
| GET | /purpose/questions |
Generate assessment questions | ❌ |
| POST | /purpose/recommend |
Get AI career recommendations | ✅ |
| POST | /roadmap/generate |
Generate a learning roadmap | ✅ |
| GET | /roadmap/history |
Get saved roadmaps | ✅ |
| DELETE | /roadmap/delete/<id> |
Delete a roadmap | ✅ |
Home → Login/Signup
↓
Find Your Purpose
↓
[1] Select Location (India / International)
[2] Select Career Category
[3] Select Education Level
[4] Answer 5 AI-generated Questions
↓
AI Career Recommendations (with match %)
↓
Generate Learning Roadmap
↓
Visual Flowchart with Checkable Steps
Pull requests are welcome. For major changes, please open an issue first to discuss what you'd like to change.
This project is open source and available under the MIT License.