How rithish08/fyke-connect-india works
Project type and purpose
• This is a full-stack, single-page application (SPA) built with Vite, React (TypeScript), Tailwind CSS, and shadcn-ui.
• The front end lives entirely in the src/ folder (components, pages, hooks, contexts, services).
• The “back end” consists of Supabase: a hosted Postgres database + edge functions under supabase/functions/*.
• Capacitor and custom services enable mobile/native capabilities (geolocation, notifications).
File structure
• Top-level:
• src/pages/: route→page mapping
• src/components/: reusable UI broken out by feature (common, modals, filters, messaging, etc.)
• src/contexts/: React Context providers for auth, jobs, communication, localization
• src/hooks/: custom hooks encapsulating state, offline, translation, toast logic
• src/services/: wrappers around Capacitor, geolocation, notifications
• src/integrations/supabase/: Supabase client initialization + types
• supabase/functions/: serverless functions (analytics, moderate-content, send-notification)
• Config/build: vite.config.ts, tailwind.config.ts, TypeScript configs.
README insights
• Confirms Vite/React/TypeScript with shadcn-ui & Tailwind on the front end.
• Deploys via Lovable (automatically builds & publishes).
• Supabase is not explicitly in the README but is clear in the file tree.
Detail
• Break the front end into at least three tiers: UI (components/pages), state (contexts/hooks), and services (Supabase client, Capacitor).
• On the back end, separate core database from serverless functions.
• Critical flows: sign-up/auth, job search, messaging, notifications, content moderation.