How wesley-2329/hrm_project works
HRorbit is a role-based HR management portal: employees and HR staff sign in, enter role-specific workspaces, and use HR, organization, and employee-service modules. The React client sends API requests to an Express server, which applies authentication and routes domain operations to MongoDB-backed models. The README documents recruitment, learning, leave, shift logging, and helpdesk capabilities; the tree also shows budgeting, compliance, engagement, performance, and exit modules. Some domain routes and UI modules were not sampled, so those branches reflect documented capabilities and paths, not inspected call details.
Main entry points: api.js HTTP client · App.jsx Application shell · server.js Express API server · Employee.js Employee records
Components 25
React client
- Application shell
frontend/src/App.jsx - Login gateway
frontend/src/pages/LoginGateway.jsx - Session state
frontend/src/context/AuthContext.jsx - Shared HR data
frontend/src/context/DataContext.jsx - Employee workspace
frontend/src/pages/EmployeeApp.jsx - HR workspace
frontend/src/pages/HRApp.jsx - HTTP client
frontend/src/api.js
API and access
- Express API server
backend/server.js - Authentication routes
backend/routes/auth.js - Token protection
backend/middleware/auth.js - Employee records
backend/models/Employee.js - MongoDB
backend/config/db.js
People operations
- Task routes
backend/routes/tasks.js - Recruitment ATS
frontend/src/pages/recruitment/RecruitmentModule.jsx - Recruitment routes
backend/routes/recruitment.js - Performance reviews
frontend/src/pages/performance/PerformanceModule.jsx - Performance routes
backend/routes/performance.js - Learning academy
frontend/src/pages/learning/TrainingModule.jsx - Employee exit
frontend/src/pages/exit/ExitModule.jsx - Support helpdesk
backend/routes/tickets.js
Enterprise HR
- Organization routes
backend/routes/org.js - Budgeting
frontend/src/pages/budgeting/BudgetingModule.jsx - Statutory compliance
frontend/src/pages/compliance/StatutoryComplianceModule.jsx - Engagement
frontend/src/pages/engagement/EngagementModule.jsx
Other components
- HR or employee
Connections 35
- HR or employee → Application shell: opens portal
README.md - Application shell → Login gateway: routes login
frontend/src/App.jsx - Application shell → Session state: provides session
frontend/src/App.jsx - Application shell → Shared HR data: provides data
frontend/src/App.jsx - Application shell → Employee workspace: renders workspace
frontend/src/App.jsx - Application shell → HR workspace: renders workspace
frontend/src/App.jsx - Login gateway → Session state: authenticates
- Session state → HTTP client: requests profile
frontend/src/context/AuthContext.jsx - Shared HR data → HTTP client: fetches HR data
frontend/src/context/DataContext.jsx - HTTP client → Express API server: sends API requests
README.md - Express API server → Authentication routes: mounts routes
backend/server.js - Express API server → Organization routes: mounts routes
backend/server.js - Express API server → Task routes: mounts routes
backend/server.js - Express API server → MongoDB: connects database
backend/server.js - Authentication routes → Token protection: protects profile
backend/routes/auth.js - Authentication routes → Employee records: reads and writes
backend/routes/auth.js - Token protection → Employee records: loads user
backend/middleware/auth.js - Token protection → MongoDB: ensures connection
backend/middleware/auth.js - Task routes → Token protection: protects requests
backend/routes/tasks.js - Organization routes → Employee records: updates employees
backend/routes/org.js - Employee workspace → Recruitment ATS: renders module
frontend/src/pages/EmployeeApp.jsx - Employee workspace → Performance reviews: renders module
frontend/src/pages/EmployeeApp.jsx - HR workspace → Budgeting: offers budgeting
- HR workspace → Statutory compliance: offers compliance
- HR workspace → Engagement: offers engagement
- Recruitment ATS → HTTP client: uses API
frontend/src/pages/recruitment/RecruitmentModule.jsx - Performance reviews → HTTP client: uses API
frontend/src/pages/performance/PerformanceModule.jsx - Recruitment routes → Employee records: uses employee data
- Performance routes → Employee records: uses employee data
backend/routes/performance.js - Learning academy → HTTP client: uses API
- Employee exit → HTTP client: uses API
- Budgeting → HTTP client: uses API
frontend/src/pages/budgeting/BudgetingModule.jsx - Statutory compliance → HTTP client: uses API
frontend/src/pages/compliance/StatutoryComplianceModule.jsx - Engagement → HTTP client: uses API
frontend/src/pages/engagement/EngagementModule.jsx - HR or employee → Support helpdesk: uses helpdesk