How uroobayaseen/step3 works
Project type and purpose
• This is a full‐stack, server‐rendered React application built with Next.js (using the new App Router).
• It’s a Rent-A-Car platform that lets customers browse cars (data from Sanity CMS), sign in (MongoDB), place orders (Stripe payments), and view an admin dashboard.
File structure
• Top-level “app” folder holds all front-end pages (app/page.tsx, app/Products, app/Car, etc.) plus API routes under app/api.
• “app/api” subfolders each represent a serverless endpoint (users/signin, users/checkout, getorder, forgetpassword, contactus).
• “app/models” and “app/lb” define data schemas and email‐templating logic (NodeMailer).
• “mycomponents” and “components” hold reusable UI pieces built with Tailwind CSS, ShadCN, and Sonner.
• “sanity” folder contains headless‐CMS configuration and schema types.
• Root includes next.config.mjs, Tailwind, PostCSS, TypeScript config.
Key insights from README
• Front end: Next.js + Tailwind + ShadCN + Sonner.
• Data & CMS: Sanity for car data and order records.
• Auth & user data: MongoDB.
• Payments: Stripe.
• Email notifications via custom NodeMailer templates.