How trminh-developer/employee-management-system works
TMNexora is an employee-management system with a Django server-rendered portal and a FastAPI REST service. The main workflow is authentication and role-scoped access, followed by employee and organization management and day-to-day attendance, leave, payroll, and performance operations, with reporting and notifications as supporting capabilities. The README documents shared Django ORM persistence and optional N8N automation. Some domain routers and Django views are unsampled, so links to their internal behavior are omitted or marked unverified rather than inferred.
Main entry points: __init__.py API router hub · models.py Employee records · auth.py Authentication · settings.py Shared Django ORM
Components 20
User interfaces
- Django portal
backend/config/urls.py - Portal routes
backend/config/urls.py
Access and API
- FastAPI service
backend/fastapi_main.py - API router hub
backend/apps/api/__init__.py - Authentication
backend/apps/api/routers/auth.py - JWT and RBAC
backend/apps/api/dependencies.py - User accounts
backend/apps/accounts/models.py - Shared Django ORM
backend/config/settings.py - Relational database
People operations
- Employee records
backend/apps/employees/models.py - Departments and positions
backend/apps/departments/models.py - Attendance
backend/apps/attendance/models.py - Leave approvals
backend/apps/leave/models.py - Payroll
backend/apps/payroll/models.py
Insights and integrations
- Performance reviews
backend/apps/performance/models.py - Reports
backend/apps/reports/views.py - Notifications
backend/apps/notifications/models.py
Other components
- Web browser
- API client
- N8N workflows
Connections 28
- Web browser → Django portal: uses portal
- Django portal → Portal routes: serves routes
backend/config/urls.py - Portal routes → Employee records: routes dashboard
backend/config/urls.py - API client → FastAPI service: sends REST requests
- FastAPI service → API router hub: mounts router
backend/fastapi_main.py - API router hub → Authentication: includes router
backend/apps/api/__init__.py - Authentication → JWT and RBAC: uses token helpers
backend/apps/api/routers/auth.py - Authentication → User accounts: authenticates users
backend/apps/api/routers/auth.py - Authentication → Employee records: looks up profile
backend/apps/api/routers/auth.py - JWT and RBAC → User accounts: checks accounts
backend/apps/api/dependencies.py - JWT and RBAC → Employee records: checks employee status
backend/apps/api/dependencies.py - API router hub → Departments and positions: serves domain operations
- API router hub → Attendance: serves domain operations
- API router hub → Leave approvals: serves approval operations
- API router hub → Payroll: serves domain operations
- API router hub → Performance reviews: serves domain operations
- API router hub → Reports: serves reports
- API router hub → Notifications: serves notifications
- Django portal → Shared Django ORM: uses shared ORM
- FastAPI service → Shared Django ORM: uses shared ORM
- Shared Django ORM → Relational database: persists records
- Shared Django ORM → N8N workflows: triggers webhooks
- Employee records → Departments and positions: references organization
backend/apps/employees/models.py - Employee records → User accounts: links account
backend/apps/employees/models.py - Employee records → Attendance: shows attendance
backend/apps/employees/views.py - Employee records → Leave approvals: counts pending leave
backend/apps/employees/views.py - Employee records → Payroll: shows payroll
backend/apps/employees/views.py - Employee records → Performance reviews: shows reviews
backend/apps/employees/views.py