How toluenetech-spec/servix works
Servix is a professional-services marketplace. The public site presents marketing, service discovery and provider profiles, with sign-in, booking, professional and admin screens; its README emphasizes that listings and account interactions are pre-launch/demo rather than fully live. The repository also contains a Fastify API for authentication, onboarding, bookings, payments and administration. The graph separates those product areas and shows only relationships visible in excerpts or documented by the README; several backend route and integration details are unsampled.
Main entry points: App.jsx Website routes · app.ts Fastify app · ServicesPage.jsx Service discovery · jobs.ts Background jobs
Components 27
Public website
- Website routes
src/App.jsx - Marketing pages
src/pages/HomePage.jsx - Service discovery
src/pages/ServicesPage.jsx - Service details
src/pages/ServiceDetailPage.jsx - Provider profiles
src/pages/ProfessionalsPage.jsx - Account screens
src/pages/auth/LoginPage.jsx - Booking screens
src/pages/bookings/BookingsPage.jsx - Provider workspace
src/pages/pro/WorkspacePage.jsx - Admin console
src/pages/admin/AdminPage.jsx - Shared layout
src/components/layout/Layout.jsx
Frontend data and identity
- Demo catalogue
src/data/services.js - Fetch state hook
src/lib/useFetch.js - Frontend API boundary
src/lib/api.js - Auth context
src/lib/AuthContext.jsx - Auth client
src/lib/authApi.js
Marketplace API
- Fastify app
api/src/app.ts - Catalogue routes
api/src/routes/services.ts - Identity routes
api/src/routes/auth.ts - Provider applications
api/src/routes/applications.ts - Booking routes
api/src/routes/bookings.ts - Admin routes
api/src/routes/admin.ts
Platform operations
- Postgres access
api/src/lib/db.ts - Background jobs
api/src/lib/jobs.ts - Email delivery
api/src/lib/mailer.ts - Payment webhooks
api/src/routes/webhooks.ts - File storage
api/src/lib/storage.ts
Other components
- Customer / provider
Connections 23
- Customer / provider → Website routes: opens
src/App.jsx - Website routes → Shared layout: wraps routes
src/App.jsx - Website routes → Service discovery: routes to
src/App.jsx - Website routes → Service details: routes to
src/App.jsx - Website routes → Provider profiles: routes to
src/App.jsx - Website routes → Account screens: routes to
src/App.jsx - Website routes → Booking screens: routes to
src/App.jsx - Website routes → Provider workspace: routes to
src/App.jsx - Website routes → Admin console: routes to
src/App.jsx - Service discovery → Fetch state hook: loads through
src/pages/ServicesPage.jsx - Fetch state hook → Frontend API boundary: invokes fetcher
src/lib/useFetch.js - Service discovery → Demo catalogue: renders cards
- Website routes → Auth context: provides auth
src/App.jsx - Auth context → Auth client: calls
src/lib/AuthContext.jsx - Fastify app → Catalogue routes: registers
api/src/app.ts - Fastify app → Identity routes: registers
api/src/app.ts - Fastify app → Provider applications: registers
api/src/app.ts - Provider applications → Postgres access: reads / writes
api/src/routes/applications.ts - Fastify app → Booking routes: registers
api/src/app.ts - Fastify app → Admin routes: registers
api/src/app.ts - Background jobs → Postgres access: claims jobs
api/src/lib/jobs.ts - Background jobs → Email delivery: delivers mail
api/src/lib/jobs.ts - Customer / provider → Fastify app: API requests