How tumbichi/belumont-frontend works
Project type and purpose
• This is a full‑stack Next.js application (App Router) that serves both the UI and API endpoints.
• Purpose: an e‑commerce‑style storefront with product listings, purchase flow (via MercadoPago), email notifications (via Resend), and metadata fetching from Instagram. It persists orders, users, payments, and products in Supabase.
File structure
• Top‑level “src/app”: Next.js App Router pages and API routes
• src/app/page.tsx, detalle‑de‑compra/page.tsx, pago/exitoso/page.tsx, etc.
• src/app/api/*: meta/instagram, payment, payment/webhook, resend/send‑email.
• “src/core”: shared utilities, UI components, data layer, hooks, i18n, formatting, email templates.
• “src/modules”: feature folders (payments, products) containing UI components, schemas, layouts.
• Data layer structure:
• core/data/instagram, mercadopago, resend, supabase (orders, payments, products, users)
• Each has client.ts, repository.ts, and services/*.
• Config & tooling: ESLint, Prettier, Tailwind, Vercel CI workflows.