How sailesh1200/market-direct-connect works
Project type and purpose
• This is a single‑page React application built with Vite and TypeScript. It uses shadcn‑ui (a Tailwind‑based component library) to render a multi‑role marketplace UI for buyers and farmers (plus an admin dashboard). There is no custom backend in this repository—data is fetched by a service layer (DataSyncService) from external APIs.
File structure
• Top‑level files & config
• package.json, vite.config.ts, tsconfig.json, tailwind.config.ts, etc. define dev/build settings.
• public/ holds static assets (robots.txt, index.html).
• Source code (src/)
• main.tsx boots the React app & router.
• App.tsx contains global layout (Navbar, footer, routes).
• pages/ holds page‑level components (HomePage, MarketPage, dashboard pages, auth pages, etc.).
• components/ subdivided by feature (auth, buyer, farmer, dashboard, market, home) plus a ui/ folder for generic UI primitives.
• services/DataSyncService.ts is the single point for all API calls.
• contexts/LanguageContext provides i18n context.
• hooks/ and lib/utils.ts provide reusable logic.
• data/mockData.ts contains test/mocks.
README for additional insights
• Confirms the stack: Vite, TypeScript, React, shadcn‑ui, Tailwind CSS.
• App is hosted via Lovable (providing dev server, build & publish).