Replaced all fake/random data with real data from registered users in the portal.
- Created JSON file storage for jobs, applications, and ATS scores
- Data now persists across server restarts
- Files created:
jobs.json- Stores job postingsapplications.json- Stores job applicationsats_scores.json- Stores resume scan results
def load_json_file(filepath, default=[])
def save_json_file(filepath, data)/post_job/- Now saves to jobs.json with real timestamps/apply_job/- Saves applications with real timestamps/delete_job/- Removes from persistent storage/upload_resume/- Saves ATS scores to file/recommend_jobs/- Only returns active jobs from database/get_dashboard_analytics/- NEW endpoint for real analytics
- Changed from hardcoded "2024-01-01" to
datetime.utcnow() - All dates now reflect actual submission times
- Removed Firebase dependency
- Now fetches from backend API
/get_dashboard_analytics/ - Shows real user counts, applications, and jobs
- Displays actual registered users from users.json
- Removed hardcoded email "saran@gmail.com"
- Now shows actual logged-in user's email
- All sections (Resume ATS, Job Recommends, Activities, Learn Platform) working correctly
User Registration → users.json
Job Posting → jobs.json
Job Application → applications.json
Resume Upload → ats_scores.json
Dashboard → Reads from all JSON files
✅ No more fake data - All data comes from real user registrations ✅ Persistent storage - Data survives server restarts ✅ Real timestamps - Accurate dates and times ✅ Working buttons - All navigation buttons in sidebar work correctly ✅ Accurate dashboard - Shows real statistics from registered users ✅ Empty state - Dashboard starts with 0 jobs until providers post real ones
- Start backend:
python main.pyin backend folder - Start frontend:
npm startin frontend folder - Register as job_seeker - data saves to users.json
- Register as job_provider - data saves to users.json
- Post a job - saves to jobs.json
- Upload resume - saves to ats_scores.json
- Apply to job - saves to applications.json
- Check dashboard - shows real data from all files
backend/main.py- Added persistent storage and analyticsfrontend/src/components/dashboard/JobProviderDashboard.js- Fetch from backendfrontend/src/components/dashboard/JobSeekerDashboard.js- Fixed email display
backend/jobs.json- Empty array initiallybackend/applications.json- Empty array initiallybackend/ats_scores.json- Empty array initiallyFIXES_APPLIED.md- This documentation