How var-che/truckfind works
TruckFind is a truck-driver and trucking-company marketplace. Its central recruiting flow is company discovery of driver profiles, contact unlocking with credits, then lead follow-up through the company CRM. The tree also shows driver/company onboarding and profiles, saved searches, verification, subscription payments, and blog content. The sampled routes confirm several database and integration actions; other page-to-route wiring is not shown, so those links are omitted.
Main entry points: update-saved-searches/route.ts Search refresh job · page.tsx Company CRM · send-verification/route.ts Send verification · create-order/route.ts Credit purchase
Components 25
Driver Marketplace
- Browse & profiles
src/app/drivers/page.tsx - Company directory
src/app/companies/page.tsx - Driver profiles
src/app/driver/profile/create/page.tsx - Company profiles
src/app/company/profile/create/page.tsx - Driver search
src/app/drivers/actions.ts - Search test API
src/app/api/test-drivers/route.ts
Recruiting CRM
- Contact unlock
src/app/api/drivers/[id]/unlock/route.ts - Company CRM
src/app/company/crm/page.tsx - CRM actions
src/app/company/crm/actions.ts - Saved searches
src/app/company/crm/saved-searches-actions.ts - Search refresh job
src/app/api/cron/update-saved-searches/route.ts
Accounts & Payments
- Signup & auth
src/app/auth/signup/page.tsx - Send verification
src/app/api/companies/send-verification/route.ts - Confirm verification
src/app/api/companies/verify-email/route.ts - Credit purchase
src/app/api/payments/create-order/route.ts - Payment return
src/app/api/payments/return/route.ts - Payment webhook
src/app/api/payments/webhook/route.ts
Content & Alerts
- Hub subscription
src/app/api/hub/subscribe/route.ts - Blog publishing
src/app/blog/page.tsx - Blog RSS feed
src/app/rss.xml/route.ts
Other components
- Company recruiter
- Driver
- Supabase
- 2Checkout
- Resend email
Connections 31
- Company recruiter → Browse & profiles: browses
- Company recruiter → Company directory: browses
- Driver → Driver profiles: creates profile
- Browse & profiles → Driver search: filters drivers
- Search test API → Supabase: queries drivers
- Company recruiter → Contact unlock: requests unlock
- Contact unlock → Supabase: checks & records
- Company recruiter → Company CRM: follows leads
- Company CRM → CRM actions: runs actions
- Company CRM → Saved searches: manages searches
- Search refresh job → Supabase: loads searches
- Search refresh job → Saved searches: refreshes matches
- Search refresh job → Resend email: sends alerts
- Driver → Signup & auth: signs up
- Company recruiter → Signup & auth: signs up
- Company recruiter → Send verification: requests verification
- Send verification → Supabase: checks & updates
- Send verification → Resend email: invites by email
- Confirm verification → Supabase: verifies company
- Company recruiter → Credit purchase: buys credits
- Credit purchase → Supabase: creates purchase
- Credit purchase → 2Checkout: creates order
- 2Checkout → Payment webhook: posts payment event
- Payment webhook → Supabase: records & processes
- 2Checkout → Payment return: returns browser
- Payment return → Supabase: checks purchase
- Driver → Hub subscription: subscribes
- Hub subscription → Supabase: stores subscriber
- Hub subscription → Resend email: sends confirmation
- Blog publishing → Supabase: publishes content
- Blog RSS feed → Supabase: reads published posts