How fatimazahra-marghich/ijaza-leave-management works
Ijaza is a role-based leave-management application for a Moroccan public administration. Employees submit and track leave requests; service heads review them, then HR performs final review and manages balances, planning, and reports. Administrators maintain staff, organizational structure, holidays, and leave types. The React application routes users by role and calls a Django REST backend, whose leave, user, and organization modules implement domain operations and persistence. The README documents capabilities beyond the sampled excerpts; some frontend-to-API and backend routing links are therefore shown as unverified.
Main entry points: App.jsx Role-based routes · axios.js API client · models.py Leave records · views.py Leave API operations
Components 22
Web application
- Role-based routes
ijaza-frontend/ijaza-frontend/src/App.jsx - Authentication
ijaza-frontend/ijaza-frontend/src/context/AuthContext.jsx - API client
ijaza-frontend/ijaza-frontend/src/api/axios.js - Employee requests
ijaza-frontend/ijaza-frontend/src/pages/employe/NewRequest.jsx - Service-head review
ijaza-frontend/ijaza-frontend/src/pages/chef/DashboardChef.jsx - HR operations
ijaza-frontend/ijaza-frontend/src/pages/rh - Administration
ijaza-frontend/ijaza-frontend/src/pages/admin - Application layout
ijaza-frontend/ijaza-frontend/src/components/MainLayout.jsx
Leave management
- Leave API operations
backend/conges/views.py - Leave data serialization
backend/conges/serializers.py - Leave calculations
backend/conges/utils.py - Leave records
backend/conges/models.py - Annual balance rollover
backend/conges/tasks.py
Workforce administration
- User API operations
backend/users/views.py - User data serialization
backend/users/serializers.py - User records
backend/users/models.py - Organization API
backend/organisation/views.py - Organization serialization
backend/organisation/serializers.py - Organization records
backend/organisation/models.py
Backend platform
- Django REST service
backend/config/urls.py - PostgreSQL
Other components
- Application user
Connections 30
- Application user → Role-based routes: uses
ijaza-frontend/ijaza-frontend/src/App.jsx - Role-based routes → Authentication: provides auth
ijaza-frontend/ijaza-frontend/src/App.jsx - Role-based routes → Employee requests: routes to
ijaza-frontend/ijaza-frontend/src/App.jsx - Role-based routes → Service-head review: routes to
ijaza-frontend/ijaza-frontend/src/App.jsx - Role-based routes → HR operations: routes to
ijaza-frontend/ijaza-frontend/src/App.jsx - Role-based routes → Administration: routes to
ijaza-frontend/ijaza-frontend/src/App.jsx - Authentication → API client: submits login
ijaza-frontend/ijaza-frontend/src/context/AuthContext.jsx - Employee requests → API client: calls
ijaza-frontend/ijaza-frontend/src/pages/employe/NewRequest.jsx - Service-head review → API client: calls
ijaza-frontend/ijaza-frontend/src/pages/chef/DashboardChef.jsx - Administration → API client: calls
ijaza-frontend/ijaza-frontend/src/pages/admin/JourFeriePage.jsx - HR operations → API client: calls
ijaza-frontend/ijaza-frontend/src/pages/rh/DashboardRH.jsx - Employee requests → Application layout: renders in
ijaza-frontend/ijaza-frontend/src/pages/employe/NewRequest.jsx - Service-head review → Application layout: renders in
ijaza-frontend/ijaza-frontend/src/pages/chef/DashboardChef.jsx - API client → Django REST service: sends requests
- Django REST service → Leave API operations: routes to
- Leave API operations → Leave data serialization: uses
backend/conges/views.py - Leave API operations → Leave calculations: uses
backend/conges/views.py - Leave API operations → Leave records: queries
backend/conges/views.py - Leave data serialization → Leave records: serializes
backend/conges/serializers.py - Annual balance rollover → Leave records: updates balances
backend/conges/tasks.py - Django REST service → User API operations: routes to
- User API operations → User data serialization: uses
backend/users/views.py - User data serialization → User records: serializes
backend/users/serializers.py - User data serialization → Leave records: reads balances
backend/users/serializers.py - Django REST service → Organization API: routes to
- Organization API → Organization serialization: uses
backend/organisation/views.py - Organization serialization → Organization records: serializes
backend/organisation/serializers.py - Leave records → PostgreSQL: stored in
- User records → PostgreSQL: stored in
- Organization records → PostgreSQL: stored in