How tifiloutube/l-agencev2 works
Project type and purpose
• This is a full-stack web application (“L-agencev2”) built with Next.js 13 (App Router), React and TypeScript on the frontend, and Next.js API Routes (Node.js) on the backend.
• Purpose: an online real-estate matching platform (“mise en relation immobilière”) that supports property listing, user account management, messaging between users, property simulations, and subscription billing via Stripe.
File structure
• Top-level “client” folder hosts both frontend (app/, components/, public/, styles/) and backend (app/api/) code.
• app/ contains React server/client components and page routes.
• app/api/ contains Next.js API Route endpoints mapped one-to-one to business features: account, auth, properties, messages, favorites, simulation, stripe, upload-temp.
• lib/ holds shared utilities: prisma client, authentication helpers, business services, Stripe plan definitions, React context.
• prisma/ holds the schema and migration history for the PostgreSQL database.
• components/ contains reusable React UI components grouped by domain (account, property, message, layout).
README for additional insights
• Confirms the real-estate marketplace nature.
Elements
• Clear labels: e.g., “Next.js API Routes”, “Prisma ORM”, “PostgreSQL DB”, “Stripe Service”.
• UI → API (property listing, messages, simulation)
• API → DB (CRUD operations)
• API ↔ Stripe (checkout, webhook events)
• External services in a third (e.g., gray clouds)