How rfypych/micro-mart-nexus works
Project type and purpose
• This is a frontend-focused Single Page Application built with React, TypeScript, Vite, Tailwind CSS, and the shadcn-ui component library.
• It integrates with Supabase for data storage, authentication, and possibly real-time features.
File structure
• Top-level config files: vite.config.ts, tsconfig.json, tailwind.config.ts, postcss.config.js, vercel.json.
• Public/static assets in public/.
• Source code in src/, subdivided into:
• pages/ (route components under React Router or similar)
• components/ (shared UI components and the shadcn-ui folder)
• context/ (React Context providers: Cart & Admin)
• data/ (in-memory product definitions)
• integrations/supabase/ (Supabase client and type definitions)
• hooks/ (custom hooks e.g., use-mobile, use-toast)
• lib/utils.ts (utility functions)
• Entry point: src/main.tsx + src/App.tsx
README
• Confirms stack: Vite, React, TS, Tailwind, shadcn-ui, Supabase.
• Deployment: Vercel or via Lovable platform.
Elements
• User → Browser → React App
• React App → Supabase client → Supabase services
• Supabase → React App (data events)
• Frontend (light blue)
• Backend (light green)
• CI/CD & Deployment (grey)
• CDN / Static (orange)