How abhigyansr/interndiary works
Intern Diary is a React/Express placement-preparation app. Students browse opportunities, track applications, plan preparation, share interview experiences, and read personalized news; admins manage postings and interview moderation. The graph follows the documented React-to-REST workflow and the sampled server routes, controllers, and news-ingestion calls. Some page internals and runtime modules were not sampled, so their implementation-level connections are omitted.
Main entry points: server.js Express API · newsIngestion.js News Ingestion · jobController.js Opportunity Management · api.js API Client
Components 29
Student and Admin UI
- React App Routes
client/src/App.js - Auth Context
client/src/context/AuthContext.js - Product Pages
client/src/pages - Admin Dashboard
client/src/pages/adminDashboard.jsx - API Client
client/src/services/api.js
API and Domain Workflows
- Express API
server/server.js - Accounts and Reset
server/controllers/authController.js - Opportunity Management
server/controllers/jobController.js - Application Tracker
server/controllers/appController.js - Preparation Planner
server/controllers/taskController.js - Interview Experiences
server/controllers/interviewController.js - Profile and Preferences
server/controllers/userController.js - Job PDF Extraction
server/utils/llmHandler.js - PDF Storage
server/utils/fileStorage.js - News API
server/controllers/newsController.js
News Curation
- News Refresh Trigger
server/utils/newsCron.js - News Ingestion
server/utils/newsIngestion.js - Feed and Article Fetching
server/utils/newsScraper.js - RSS Feed Sources
server/utils/rssFeeds.js - Gemini Enrichment
server/utils/llmHandler.js
Persistent Data
- MongoDB
- User Records
server/models/User.js - Opportunity Records
server/models/Opportunity.js - Application Records
server/models/Application.js - Task Records
server/models/Task.js - Interview Records
server/models/Interview.js - News Records
server/models/News.js - Stored PDFs
server/models/StoredFile.js
Other components
- Student or Admin
Connections 33
- Student or Admin → React App Routes: uses
client/src/App.js - React App Routes → Product Pages: routes to
client/src/App.js - React App Routes → Auth Context: provides auth
client/src/App.js - Product Pages → API Client: requests data
client/src/pages/application.jsx - Auth Context → API Client: calls
client/src/context/AuthContext.js - Admin Dashboard → API Client: manages content
- API Client → Express API: sends REST requests
README.md - Express API → Accounts and Reset: mounts auth routes
server/server.js - Express API → Opportunity Management: mounts jobs routes
server/server.js - Express API → Application Tracker: mounts application routes
server/server.js - Express API → Preparation Planner: mounts task routes
server/server.js - Express API → Interview Experiences: mounts interview routes
server/server.js - Express API → Profile and Preferences: mounts user routes
server/server.js - Express API → News API: mounts news routes
server/server.js - Opportunity Management → Job PDF Extraction: extracts PDF fields
server/routes/jobRoutes.js - Opportunity Management → PDF Storage: stores uploaded PDF
server/routes/jobRoutes.js - Express API → PDF Storage: stores resumes
server/server.js - Express API → News Refresh Trigger: starts refresh schedule
server/server.js - News Refresh Trigger → News Ingestion: refreshes news
server/utils/newsCron.js - News API → News Ingestion: triggers refresh
server/controllers/newsController.js - News Ingestion → RSS Feed Sources: loads feeds
server/utils/newsIngestion.js - News Ingestion → Feed and Article Fetching: fetches articles
server/utils/newsIngestion.js - News Ingestion → Gemini Enrichment: enriches articles
server/utils/newsIngestion.js - Accounts and Reset → User Records: reads and writes
server/controllers/authController.js - Opportunity Management → Opportunity Records: reads and writes
server/controllers/jobController.js - Application Tracker → Application Records: reads and writes
server/controllers/appController.js - Preparation Planner → Task Records: reads and writes
- Interview Experiences → Interview Records: reads and writes
server/controllers/interviewController.js - Profile and Preferences → User Records: reads and writes
server/controllers/userController.js - News API → News Records: reads and writes
server/controllers/newsController.js - News Ingestion → News Records: checks and inserts
server/utils/newsIngestion.js - PDF Storage → Stored PDFs: stores file bytes
server/utils/fileStorage.js - Express API → MongoDB: connects
server/server.js