How patadesujal/labourline works
LabourLine connects employers posting local work with workers discovering, bidding on, and accepting it. The worker workflow runs from browsing nearby open work through job details and bidding; the employer workflow covers posting work and reviewing bids. The backend exposes these operations through controllers, services, and repositories over persisted user, work, bid, and acceptance records. The source index and excerpts support several frontend-to-store and backend call paths; frontend-to-backend HTTP wiring and some unsampled features are not confirmed, so those links are omitted or marked unverified.
Main entry points: WorkScreen.js Worker work feed · WorkController.java Work endpoints · LabourService.java Worker workflows · PostNewWorkScreen.js Post work
Components 27
Mobile app
- Entry and roles
front-end/app/src/screens/ChooseRoleScreen.js - Registration and login
front-end/app/src/screens/CreateAccountScreen.js - Worker work feed
front-end/app/(worker)/WorkScreen.js - Job cards and details
front-end/components/JobCard.js - Bidding interface
front-end/components/BiddingModal.js - Post work
front-end/app/(employer)/PostNewWorkScreen.js - Posted work status
front-end/app/src/screens/EmployerWorkStatusScreen.js - Review bids
front-end/app/src/screens/ViewBidsScreen.js - Work data state
front-end/app/src/store/WorkData.js - Work API client
front-end/app/src/store/workService.js - Location utilities
front-end/app/src/store/locationUtils.js
Accounts and profiles
- Authentication API
backend/src/main/java/com/LabourLine/LabourLine/controller/AuthenticationController.java - Authentication service
backend/src/main/java/com/LabourLine/LabourLine/service/AuthService.java - JWT utilities
backend/src/main/java/com/LabourLine/LabourLine/utils/JwtUtils.java - User profiles
backend/src/main/java/com/LabourLine/LabourLine/controller/UserController.java
Work marketplace
- Work endpoints
backend/src/main/java/com/LabourLine/LabourLine/controller/WorkController.java - Worker endpoints
backend/src/main/java/com/LabourLine/LabourLine/controller/LabourController.java - Employer endpoints
backend/src/main/java/com/LabourLine/LabourLine/controller/EmployerController.java - Worker workflows
backend/src/main/java/com/LabourLine/LabourLine/service/LabourService.java - Bid management
backend/src/main/java/com/LabourLine/LabourLine/service/EmployerService.java
Backend persistence
- Work records
backend/src/main/java/com/LabourLine/LabourLine/entity/Work.java - Bid records
backend/src/main/java/com/LabourLine/LabourLine/entity/Bid.java - User and profiles
backend/src/main/java/com/LabourLine/LabourLine/entity/User.java - Work repository
backend/src/main/java/com/LabourLine/LabourLine/repository/WorkRepository.java - Bid repository
backend/src/main/java/com/LabourLine/LabourLine/repository/BidRepository.java - Accepted work repository
backend/src/main/java/com/LabourLine/LabourLine/repository/WorkAcceptedRepository.java
Other components
- Employer or worker
Connections 29
- Employer or worker → Entry and roles: chooses role
- Employer or worker → Registration and login: registers or logs in
- Worker work feed → Job cards and details: renders
front-end/app/(worker)/WorkScreen.js - Worker work feed → Bidding interface: opens bidding
front-end/app/(worker)/WorkScreen.js - Worker work feed → Work data state: uses state
front-end/app/(worker)/WorkScreen.js - Worker work feed → Work API client: uses API client
front-end/app/(worker)/WorkScreen.js - Worker work feed → Location utilities: uses location
front-end/app/(worker)/WorkScreen.js - Job cards and details → Location utilities: uses distance helpers
front-end/components/JobCard.js - Post work → Work data state: uses state
front-end/app/(employer)/PostNewWorkScreen.js - Post work → Location utilities: uses location
front-end/app/(employer)/PostNewWorkScreen.js - Registration and login → Authentication API: submits credentials
- Authentication API → Authentication service: delegates auth
- Authentication service → User and profiles: loads and saves users
backend/src/main/java/com/LabourLine/LabourLine/service/AuthService.java - Authentication service → JWT utilities: generates token
backend/src/main/java/com/LabourLine/LabourLine/service/AuthService.java - User profiles → User and profiles: reads profiles
backend/src/main/java/com/LabourLine/LabourLine/controller/UserController.java - Work endpoints → Work repository: reads and writes work
backend/src/main/java/com/LabourLine/LabourLine/controller/WorkController.java - Work endpoints → User and profiles: loads employer or worker
backend/src/main/java/com/LabourLine/LabourLine/controller/WorkController.java - Work endpoints → Accepted work repository: records acceptance
backend/src/main/java/com/LabourLine/LabourLine/controller/WorkController.java - Worker endpoints → Worker workflows: delegates worker operations
backend/src/main/java/com/LabourLine/LabourLine/controller/LabourController.java - Worker workflows → Work repository: loads work
backend/src/main/java/com/LabourLine/LabourLine/service/LabourService.java - Worker workflows → Bid repository: saves bids
backend/src/main/java/com/LabourLine/LabourLine/service/LabourService.java - Employer endpoints → Bid management: delegates bid operations
backend/src/main/java/com/LabourLine/LabourLine/controller/EmployerController.java - Bid management → Work repository: loads work
backend/src/main/java/com/LabourLine/LabourLine/service/EmployerService.java - Bid management → Bid repository: reads and updates bids
backend/src/main/java/com/LabourLine/LabourLine/service/EmployerService.java - Work endpoints → Work records: persists work
backend/src/main/java/com/LabourLine/LabourLine/controller/WorkController.java - Worker workflows → Bid records: creates bid records
backend/src/main/java/com/LabourLine/LabourLine/service/LabourService.java - Worker work feed → Work endpoints: requests work
- Post work → Work endpoints: submits work
- Review bids → Employer endpoints: requests bid review