How bhuvaneshkumarv-stu/hragent works
AzentMart HR is an HR-only People Operations app: HR users authenticate, enter a protected React workspace, and use modules for employee records and related HR workflows. The FastAPI backend exposes those workflows over the API and persists domain data in PostgreSQL. The README documents the major capabilities; sampled source confirms routing, authentication, API-client behavior, and backend router registration. Many feature handlers were not sampled, so their internal call paths are not inferred.
Main entry points: App.jsx Protected workspace · api.js HTTP API client · auth.py Authentication API · main.py FastAPI application
Components 29
Access and app shell
- Public home
frontend/src/pages/Home/Home.jsx - Sign-in UI
frontend/src/pages/Auth/Login.jsx - Auth context
frontend/src/context/AuthContext.jsx - Auth service
frontend/src/services/authService.js - Protected workspace
frontend/src/App.jsx - HR dashboard
frontend/src/pages/Dashboard/Dashboard.jsx
People lifecycle
- Employee directory
frontend/src/pages/Employees/Employees.jsx - Employee service
frontend/src/services/employeeService.js - Onboarding journey
frontend/src/pages/Onboarding/OnboardingJourney.jsx - Attendance
frontend/src/pages/Attendance/Attendance.jsx - Leave management
frontend/src/pages/Leave/Leave.jsx
HR operations
- HR documents
frontend/src/pages/Documents/Documents.jsx - Policies
frontend/src/pages/Policies/Policies.jsx - Benefits
frontend/src/pages/Benefits/Benefits.jsx - Payroll
frontend/src/pages/Payroll/Payroll.jsx - Support tickets
frontend/src/pages/Support/HRSupport.jsx - Reports
frontend/src/pages/Reports/Reports.jsx - Profile and settings
frontend/src/pages/Settings/Settings.jsx
API and persistence
- HTTP API client
frontend/src/services/api.js - FastAPI application
backend/app/main.py - Authentication API
backend/app/api/auth.py - Cross-module search
backend/app/api/search.py - Payroll API
backend/app/api/payroll.py - Identity and authorization
backend/app/dependencies.py - Token and password security
backend/app/security.py - Database sessions
backend/app/database.py - HR domain models
backend/app/models.py - PostgreSQL
Other components
- HR user
Connections 34
- HR user → Public home: opens
README.md - HR user → Sign-in UI: signs in
README.md - Public home → Protected workspace: routes into
frontend/src/App.jsx - Sign-in UI → Auth context: uses
frontend/src/pages/Auth/Login.jsx - Auth context → Auth service: calls
frontend/src/context/AuthContext.jsx - Auth service → HTTP API client: sends requests
frontend/src/services/authService.js - HTTP API client → FastAPI application: calls API
frontend/src/services/api.js - FastAPI application → Authentication API: registers router
backend/app/main.py - FastAPI application → Payroll API: registers router
backend/app/main.py - Authentication API → Database sessions: queries
backend/app/api/auth.py - Authentication API → Token and password security: verifies credentials
backend/app/api/auth.py - Identity and authorization → Database sessions: loads user
backend/app/dependencies.py - Identity and authorization → Token and password security: decodes token
backend/app/dependencies.py - Database sessions → PostgreSQL: connects
backend/app/database.py - Authentication API → HR domain models: reads and writes users
backend/app/api/auth.py - Cross-module search → HR domain models: searches records
backend/app/api/search.py - Payroll API → HR domain models: uses HR records
backend/app/api/payroll.py - Employee directory → Employee service: requests records
- Employee service → HTTP API client: sends requests
frontend/src/services/employeeService.js - Protected workspace → HR dashboard: routes to
frontend/src/App.jsx - Protected workspace → Employee directory: routes to
frontend/src/App.jsx - Protected workspace → Onboarding journey: routes to
frontend/src/App.jsx - Protected workspace → Attendance: routes to
frontend/src/App.jsx - Protected workspace → Leave management: routes to
frontend/src/App.jsx - Protected workspace → HR documents: routes to
frontend/src/App.jsx - Protected workspace → Policies: routes to
frontend/src/App.jsx - Protected workspace → Benefits: routes to
frontend/src/App.jsx - Protected workspace → Payroll: routes to
frontend/src/App.jsx - Protected workspace → Support tickets: routes to
frontend/src/App.jsx - Protected workspace → Reports: routes to
frontend/src/App.jsx - Protected workspace → Profile and settings: routes to
frontend/src/App.jsx - HR documents → HTTP API client: requests data
frontend/src/pages/Documents/Documents.jsx - Leave management → HTTP API client: requests data
frontend/src/pages/Leave/Leave.jsx - Support tickets → HTTP API client: requests data
frontend/src/pages/Support/HRSupport.jsx