How khoidep-zai/cdtn2-nguyenbaanhkhoi-se works
This is a student freelance and part-time job marketplace for students, employers, and administrators. Its principal workflow is employer job posting, student discovery and application, employer review/status updates, notifications, and post-work mutual reviews. The graph preserves authentication, profiles, administration, and notification capabilities. Arrows are limited to calls visible in excerpts or module references in the SOURCE INDEX; major unsampled components are included without speculative connections.
Main entry points: apiClient.ts API client · UserRepository.java User repository · ApplicationService.java Application workflow · JobService.java Job search and posting
Components 29
Web client
- Role-based routes
frontend/src/App.tsx - Auth state
frontend/src/context/AuthContext.tsx - Job discovery UI
frontend/src/pages/JobDetailPage.tsx - Applicant management UI
frontend/src/pages/employer/ApplicantsPage.tsx - Review UI
frontend/src/components/review/ReviewModal.tsx - API client
frontend/src/services/apiClient.ts - Auth API service
frontend/src/services/authService.ts - Job API service
frontend/src/services/jobService.ts - Notification API service
frontend/src/services/notificationService.ts - Review API service
frontend/src/services/reviewService.ts
Identity and profiles
- Authentication endpoints
backend/src/main/java/com/nhom8/freelance/controllers/AuthController.java - Authentication service
backend/src/main/java/com/nhom8/freelance/services/AuthService.java - JWT security
backend/src/main/java/com/nhom8/freelance/security/JwtAuthenticationFilter.java - Profile management
backend/src/main/java/com/nhom8/freelance/controllers/UserController.java
Jobs and applications
- Job endpoints
backend/src/main/java/com/nhom8/freelance/controllers/JobController.java - Job search and posting
backend/src/main/java/com/nhom8/freelance/services/JobService.java - Application endpoints
backend/src/main/java/com/nhom8/freelance/controllers/ApplicationController.java - Application workflow
backend/src/main/java/com/nhom8/freelance/services/ApplicationService.java - Administration
backend/src/main/java/com/nhom8/freelance/controllers/AdminController.java
Notifications and reviews
- Notification service
backend/src/main/java/com/nhom8/freelance/services/NotificationService.java - Review endpoints
backend/src/main/java/com/nhom8/freelance/controllers/ReviewController.java - Mutual reviews
backend/src/main/java/com/nhom8/freelance/services/ReviewService.java
Backend persistence
- Job records
backend/src/main/java/com/nhom8/freelance/models/Job.java - Application records
backend/src/main/java/com/nhom8/freelance/models/Application.java - User records
backend/src/main/java/com/nhom8/freelance/models/User.java - Job repository
backend/src/main/java/com/nhom8/freelance/repositories/JobRepository.java - User repository
backend/src/main/java/com/nhom8/freelance/repositories/UserRepository.java
Other components
- Students and employers
- Administrator
Connections 33
- Students and employers → Role-based routes: use marketplace
README.md - Administrator → Role-based routes: use administration
frontend/src/App.tsx - Role-based routes → Auth state: provides auth
frontend/src/App.tsx - Auth state → Auth API service: calls
frontend/src/context/AuthContext.tsx - Job discovery UI → Job API service: calls
frontend/src/pages/JobDetailPage.tsx - Applicant management UI → API client: uses API
- Review UI → Review API service: calls
frontend/src/components/review/ReviewModal.tsx - Auth API service → API client: uses API
frontend/src/services/authService.ts - Job API service → API client: uses API
frontend/src/services/jobService.ts - Notification API service → API client: uses API
frontend/src/services/notificationService.ts - Review API service → API client: uses API
frontend/src/services/reviewService.ts - API client → Authentication endpoints: calls REST
- API client → Job endpoints: calls REST
- API client → Application endpoints: calls REST
- API client → Review endpoints: calls REST
- Authentication endpoints → Authentication service: delegates
backend/src/main/java/com/nhom8/freelance/services/AuthService.java - Authentication service → User repository: accesses users
backend/src/main/java/com/nhom8/freelance/services/AuthService.java - JWT security → User repository: loads identity
- Job endpoints → Job search and posting: delegates
backend/src/main/java/com/nhom8/freelance/controllers/JobController.java - Job search and posting → Job repository: searches and saves
backend/src/main/java/com/nhom8/freelance/services/JobService.java - Job search and posting → User repository: loads employer
backend/src/main/java/com/nhom8/freelance/services/JobService.java - Application endpoints → Application workflow: delegates
backend/src/main/java/com/nhom8/freelance/controllers/ApplicationController.java - Application workflow → Notification service: notifies parties
backend/src/main/java/com/nhom8/freelance/services/ApplicationService.java - Application workflow → Job repository: loads job
backend/src/main/java/com/nhom8/freelance/services/ApplicationService.java - Application workflow → User repository: loads student
backend/src/main/java/com/nhom8/freelance/services/ApplicationService.java - Review endpoints → Mutual reviews: delegates
backend/src/main/java/com/nhom8/freelance/controllers/ReviewController.java - Mutual reviews → Notification service: notifies reviewee
backend/src/main/java/com/nhom8/freelance/services/ReviewService.java - Mutual reviews → Job repository: loads job
backend/src/main/java/com/nhom8/freelance/services/ReviewService.java - Profile management → User repository: manages profiles
- Administration → User repository: administers users
backend/src/main/java/com/nhom8/freelance/controllers/AdminController.java - Job search and posting → Job records: creates records
backend/src/main/java/com/nhom8/freelance/services/JobService.java - Application workflow → Application records: creates records
backend/src/main/java/com/nhom8/freelance/services/ApplicationService.java - Authentication service → User records: manages identity
backend/src/main/java/com/nhom8/freelance/services/AuthService.java