How patilvishal1212/hirehub-django-project works
HireHub connects employers and job seekers through a React client and Django REST API. Users register and authenticate; seekers browse listings and submit applications, while employers create a company profile, post jobs, and review applications. The client’s role-aware routes and shared auth state support those workflows, and service modules mediate API requests. The README documents PostgreSQL and cookie-based JWT refresh. Some backend and form-page internals were not sampled, so only documented or indexed relationships are shown.
Main entry points: jobService.js Hiring API requests · App.jsx Route application · EmployerDashboard.jsx Employer dashboard · urls.py API routing
Components 21
Client and identity
- Route application
frontend/src/App.jsx - Login and registration
frontend/src/pages - Auth session state
frontend/src/context/AuthContext.jsx - Auth requests
frontend/src/services/AuthService.js - HTTP client
frontend/src/services/api.js
Employer workflows
- Employer dashboard
frontend/src/pages/dashboard/EmployerDashboard.jsx - Company profile
frontend/src/pages/subpages/CreateCompany.jsx - Job creation
frontend/src/pages/subpages/CreateJob.jsx - Application review
frontend/src/components/ApplicationsModal.jsx
Seeker workflows
- Job browsing
frontend/src/pages/dashboard/SeekerDahsboard.jsx - Job application
frontend/src/components/ApplyJobModal.jsx - Hiring API requests
frontend/src/services/jobService.js
Backend API domains
- API routing
backend/hirehub/hirehub/urls.py - Accounts and auth API
backend/hirehub/accounts/views.py - Account serialization
backend/hirehub/accounts/serializers.py - User accounts
backend/hirehub/accounts/models.py - Company, jobs, applications
backend/hirehub/jobs/views.py - Hiring serialization
backend/hirehub/jobs/serializers.py - Hiring records
backend/hirehub/jobs/models.py
Persistence
- PostgreSQL
Other components
- Employer or seeker
Connections 24
- Employer or seeker → Route application: uses
- Route application → Login and registration: routes to
frontend/src/App.jsx - Route application → Employer dashboard: routes to
frontend/src/App.jsx - Route application → Job browsing: routes to
frontend/src/App.jsx - Login and registration → Auth session state: uses auth
frontend/src/pages/Register.jsx - Auth session state → Auth requests: calls
frontend/src/context/AuthContext.jsx - Auth requests → HTTP client: sends requests
frontend/src/services/AuthService.js - Employer dashboard → Hiring API requests: fetches company and jobs
frontend/src/pages/dashboard/EmployerDashboard.jsx - Employer dashboard → Application review: opens
frontend/src/pages/dashboard/EmployerDashboard.jsx - Company profile → Hiring API requests: submits company
frontend/src/services/jobService.js - Job creation → Hiring API requests: submits job
frontend/src/services/jobService.js - Job browsing → Hiring API requests: loads listings
frontend/src/pages/dashboard/SeekerDahsboard.jsx - Job application → Hiring API requests: submits application
frontend/src/components/ApplyJobModal.jsx - Application review → Hiring API requests: loads applications
frontend/src/components/ApplicationsModal.jsx - Hiring API requests → HTTP client: sends requests
frontend/src/services/jobService.js - HTTP client → API routing: calls REST API
- API routing → Accounts and auth API: routes auth
- API routing → Company, jobs, applications: routes hiring
- Accounts and auth API → Account serialization: uses
backend/hirehub/accounts/views.py - Company, jobs, applications → Hiring serialization: uses
backend/hirehub/jobs/views.py - Company, jobs, applications → Hiring records: queries and saves
backend/hirehub/jobs/views.py - Hiring serialization → Hiring records: serializes
backend/hirehub/jobs/serializers.py - User accounts → PostgreSQL: persists in
- Hiring records → PostgreSQL: persists in