How thanusree7744/worklink-ai works
WorkLink AI is a two-sided labor marketplace: customers post jobs and find workers, while workers discover jobs, apply, and manage their profiles. The frontend also exposes recommendations, reviews, messaging, and administrator views; the backend provides corresponding API areas and persists marketplace records. The graph follows documented route registration and sampled imports/calls. Several router implementations and frontend pages were not sampled, so their internal behavior and specific frontend-to-backend HTTP links are not asserted.
Main entry points: main.py API application · routes.tsx Role-based routes · crud.py Marketplace operations · seed_db.py Demo data seeding
Components 29
Marketplace frontend
- App entry
frontend/src/app/App.tsx - Role-based routes
frontend/src/app/routes.tsx - Auth guard
frontend/src/app/components/RequireAuth.tsx - Auth state
frontend/src/app/contexts/AuthContext.tsx - HTTP client
frontend/src/app/services/api.ts - Worker discovery
frontend/src/app/pages/WorkerSearchPage.tsx - Worker profiles
frontend/src/app/pages/WorkerProfilePage.tsx - Worker dashboard
frontend/src/app/pages/WorkerDashboard.tsx - AI recommendations
frontend/src/app/pages/AIRecommendationsPage.tsx - Reviews
frontend/src/app/pages/ReviewsPage.tsx - Customer job flows
frontend/src/app/pages/JobPostingPage.tsx - Administration
frontend/src/app/pages/AdminDashboard.tsx
Backend API
- API application
backend/app/main.py - Authentication API
backend/app/api/routers/auth.py - Jobs API
backend/app/api/routers/jobs.py - Workers API
backend/app/api/routers/workers.py - Recommendations API
backend/app/api/routers/recommendations.py - Reviews API
backend/app/api/routers/reviews.py - Uploads API
backend/app/api/routers/uploads.py - Users API
backend/app/api/routers/users.py
Backend domain and persistence
- Auth dependencies
backend/app/api/deps.py - Marketplace operations
backend/app/crud.py - Token and passwords
backend/app/core/security.py - API schemas
backend/app/schemas.py - Marketplace records
backend/app/models.py - Database session
backend/app/db/session.py - Runtime settings
backend/app/core/config.py - Demo data seeding
backend/app/seed_db.py
Other components
- Marketplace user
Connections 41
- Marketplace user → App entry: uses
- App entry → Role-based routes: loads routes
frontend/src/app/App.tsx - App entry → Auth state: provides auth
frontend/src/app/App.tsx - Role-based routes → Auth guard: guards pages
frontend/src/app/routes.tsx - Auth guard → Auth state: checks identity
frontend/src/app/components/RequireAuth.tsx - Auth state → HTTP client: uses
frontend/src/app/contexts/AuthContext.tsx - Role-based routes → Worker discovery: routes to
frontend/src/app/routes.tsx - Role-based routes → Worker profiles: routes to
frontend/src/app/routes.tsx - Role-based routes → Worker dashboard: routes to
frontend/src/app/routes.tsx - Role-based routes → AI recommendations: routes to
frontend/src/app/routes.tsx - Role-based routes → Reviews: routes to
frontend/src/app/routes.tsx - Role-based routes → Customer job flows: routes to
frontend/src/app/routes.tsx - Role-based routes → Administration: routes to
frontend/src/app/routes.tsx - Worker discovery → Worker profiles: renders cards
frontend/src/app/pages/WorkerSearchPage.tsx - Worker discovery → HTTP client: imports client
frontend/src/app/pages/WorkerSearchPage.tsx - Worker profiles → HTTP client: imports client
frontend/src/app/pages/WorkerProfilePage.tsx - Worker dashboard → HTTP client: uses client
frontend/src/app/pages/WorkerDashboard.tsx - API application → Authentication API: registers
backend/app/main.py - API application → Users API: registers
backend/app/main.py - API application → Jobs API: registers
backend/app/main.py - API application → Workers API: registers
backend/app/main.py - API application → Recommendations API: registers
backend/app/main.py - API application → Uploads API: registers
backend/app/main.py - API application → Reviews API: registers
backend/app/main.py - API application → Demo data seeding: seeds on startup
backend/app/main.py - API application → Database session: creates tables
backend/app/main.py - API application → Marketplace records: loads metadata
backend/app/main.py - Authentication API → Marketplace operations: calls operations
backend/app/api/routers/auth.py - Jobs API → Marketplace operations: calls operations
backend/app/api/routers/jobs.py - Workers API → Marketplace operations: calls operations
backend/app/api/routers/workers.py - Reviews API → Marketplace operations: calls operations
backend/app/api/routers/reviews.py - Auth dependencies → Token and passwords: decodes token
backend/app/api/deps.py - Auth dependencies → Marketplace operations: loads user
backend/app/api/deps.py - Marketplace operations → Marketplace records: queries and writes
backend/app/crud.py - Marketplace operations → API schemas: accepts inputs
backend/app/crud.py - Marketplace operations → Token and passwords: hashes passwords
backend/app/crud.py - Database session → Runtime settings: reads settings
backend/app/db/session.py - Token and passwords → Runtime settings: reads settings
backend/app/core/security.py - Demo data seeding → Database session: imports session
backend/app/seed_db.py - Demo data seeding → Marketplace records: uses records
backend/app/seed_db.py - Demo data seeding → Token and passwords: uses password hashing
backend/app/seed_db.py