How sai-kumar-byagari/saven-hr-portal works
Saven HR Portal is a role-based employee-management application: users enter through the React client, access role-appropriate HR workflows, and receive results from the Express API backed by MySQL. Its domain spans workforce records and attendance, leave, onboarding, recruitment and interviews, payroll, and employee collaboration. The sampled code confirms server setup, authentication, recruitment and team handlers, notification behavior, and a manager dashboard; most other feature links are inferred from the file tree, so they are shown as unverified rather than asserted calls.
Main entry points: api Feature API clients · index.js API route dispatch · AppRouter.jsx Page routing · server.js HTTP API server
Components 24
Web client
- Page routing
frontend/src/router/AppRouter.jsx - Role dashboards
frontend/src/pages/dashboard/ManagerDashboard.jsx - Onboarding forms
frontend/src/pages/onboarding/HRFormsVerificationPage.jsx - Attendance reports
frontend/src/pages/attendance/AttendanceReportPage.jsx - Team projects
frontend/src/pages/teams/TeamDetailPage.jsx - Feature API clients
frontend/src/api
API access
- HTTP API server
backend/server.js - Token authentication
backend/middleware/auth.js - API route dispatch
backend/routes/index.js
People operations
- Employee records
backend/controllers/users.controller.js - Form verification
backend/controllers/employeeForm.controller.js - Attendance management
backend/controllers/attendance.controller.js - Leave management
backend/controllers/leaves.controller.js - Org and directory
backend/controllers/orgchart.controller.js
Talent and growth
- Recruitment workflow
backend/controllers/recruitment.controller.js - Interview rounds
backend/controllers/interviews.controller.js - Payroll processing
backend/controllers/payroll.controller.js - Teams and projects
backend/controllers/teams.controller.js
Shared platform
- MySQL persistence
backend/config/database.js - Domain models
backend/models/index.js - Notifications
backend/services/notification.service.js - AI assistance
backend/services/ai.service.js - Contextual AI chat
backend/services/chat.service.js
Other components
- Employee or HR user
Connections 38
- Employee or HR user → Page routing: uses
frontend/src/router/AppRouter.jsx - Page routing → Role dashboards: routes to
frontend/src/router/AppRouter.jsx - Page routing → Onboarding forms: routes to
frontend/src/router/AppRouter.jsx - Page routing → Attendance reports: routes to
frontend/src/router/AppRouter.jsx - Page routing → Team projects: routes to
frontend/src/router/AppRouter.jsx - Role dashboards → Feature API clients: requests data
frontend/src/pages/dashboard/ManagerDashboard.jsx - Onboarding forms → Feature API clients: submits forms
- Attendance reports → Feature API clients: requests reports
- Team projects → Feature API clients: requests projects
- Feature API clients → HTTP API server: calls API
- HTTP API server → API route dispatch: mounts routes
backend/server.js - HTTP API server → Token authentication: authenticates files
backend/server.js - API route dispatch → Employee records: dispatches
- API route dispatch → Form verification: dispatches
- API route dispatch → Attendance management: dispatches
- API route dispatch → Leave management: dispatches
- API route dispatch → Org and directory: dispatches
- API route dispatch → Recruitment workflow: dispatches
- API route dispatch → Interview rounds: dispatches
- API route dispatch → Payroll processing: dispatches
- API route dispatch → Teams and projects: dispatches
- Recruitment workflow → AI assistance: generates descriptions
backend/controllers/recruitment.controller.js - Recruitment workflow → Notifications: notifies users
backend/controllers/recruitment.controller.js - Teams and projects → Notifications: creates notices
backend/controllers/teams.controller.js - Teams and projects → Domain models: reads and writes
backend/controllers/teams.controller.js - Contextual AI chat → Domain models: reads context
backend/services/chat.service.js - Notifications → Domain models: stores notices
backend/services/notification.service.js - Domain models → MySQL persistence: uses connection
backend/models/index.js - HTTP API server → MySQL persistence: verifies connection
backend/server.js - Feature API clients → Employee records: feature requests
- Feature API clients → Form verification: feature requests
- Feature API clients → Attendance management: feature requests
- Feature API clients → Leave management: feature requests
- Feature API clients → Org and directory: feature requests
- Feature API clients → Recruitment workflow: feature requests
- Feature API clients → Interview rounds: feature requests
- Feature API clients → Payroll processing: feature requests
- Feature API clients → Teams and projects: feature requests