How chaitanya2230/hr-harvik works
Harvik Technologies is an internal HR dashboard: users sign in, work with employee and HR lifecycle records, and view or export operational reports. The web app routes users to feature pages; API controllers and services implement the domain operations, backed by MongoDB and Redis/BullMQ. The README documents broader capabilities than the sampled source, so those branches are represented without asserting unshown call paths. Dashed edges with null evidence mark the unsampled browser-to-API boundary.
Main entry points: employee.service.ts Employee records · client.ts API client · mongo.ts MongoDB · App.tsx App routes
Components 24
Web dashboard
- App routes
apps/web/src/App.tsx - Sign-in session
apps/web/src/features/auth/AuthProvider.tsx - API client
apps/web/src/api/client.ts - Employee workspace
apps/web/src/features/employees/EmployeeListPage.tsx - Attendance workspace
apps/web/src/features/attendance/AttendancePage.tsx - Reports workspace
apps/web/src/features/reports/ReportsPage.tsx
Identity and governance
- Authentication
apps/api/src/modules/auth/auth.service.ts - Audit trail
apps/api/src/modules/audit/audit.service.ts - Employee access scope
apps/api/src/modules/employees/employee.scope.ts
Workforce lifecycle
- Employee records
apps/api/src/modules/employees/employee.service.ts - Recruitment pipeline
apps/api/src/modules/recruitment/recruitment.controller.ts - Onboarding
apps/api/src/modules/onboarding/onboarding.service.ts - Exit lifecycle
apps/api/src/modules/exit/exit.service.ts
HR operations
- Attendance and holidays
apps/api/src/modules/attendance/attendance.service.ts - Leave management
apps/api/src/modules/leave/leave.service.ts - Documents and PDFs
apps/api/src/modules/documents/document.service.ts - Assets and licenses
apps/api/src/modules/licenses/license.service.ts - Notifications and reminders
apps/api/src/modules/notifications/notification.service.ts - Reports and exports
apps/api/src/modules/reports/report.controller.ts
Runtime services
- MongoDB
apps/api/src/db/mongo.ts - Redis
apps/api/src/db/redis.ts - BullMQ jobs
apps/api/src/jobs/queues.ts - Email delivery
apps/api/src/modules/notifications/email.service.ts
Other components
- HR user
Connections 26
- HR user → App routes: uses
apps/web/src/App.tsx - App routes → Sign-in session: mounts
apps/web/src/App.tsx - App routes → Employee workspace: routes
apps/web/src/App.tsx - App routes → Reports workspace: routes
apps/web/src/App.tsx - HR user → Attendance workspace: uses
- Sign-in session → API client: calls
apps/web/src/features/auth/AuthProvider.tsx - Employee workspace → API client: requests
- Attendance workspace → API client: requests
- Reports workspace → API client: requests
- API client → Authentication: sends requests
- Authentication → Audit trail: records activity
apps/api/src/modules/auth/auth.service.ts - Authentication → Redis: checks denylist
apps/api/src/modules/auth/auth.service.ts - Employee records → Audit trail: records changes
apps/api/src/modules/employees/employee.service.ts - Employee records → Onboarding: syncs checklist
apps/api/src/modules/employees/employee.service.ts - Employee records → Employee access scope: uses scope
apps/api/src/modules/employees/employee.service.ts - Recruitment pipeline → Employee records: converts candidate
apps/api/src/modules/recruitment/recruitment.controller.ts - Reports and exports → MongoDB: reads domain data
- Reports and exports → BullMQ jobs: queues large exports
apps/api/src/modules/reports/report.controller.ts - Notifications and reminders → Email delivery: sends email
- Notifications and reminders → BullMQ jobs: schedules reminders
- Employee records → MongoDB: persists records
- Attendance and holidays → BullMQ jobs: reconciles nightly
- Leave management → MongoDB: stores requests
- Documents and PDFs → MongoDB: stores metadata
- Assets and licenses → MongoDB: stores assignments
- Exit lifecycle → Employee records: updates lifecycle