How jsm1306/trendtakeaway works
Project type and purpose
• TrendTakeaway is a full-stack MERN (MongoDB, Express, React, Node.js) product comparison and analysis platform.
• It ingests real-time e-commerce data by scraping external sites (Amazon, Bajaj) with Puppeteer, performs optional sentiment analysis and summarization, and serves a React/Vite frontend with secured Auth0-based authentication.
File structure
• Top level: a monorepo with two main folders: “backend” (Node/Express API) and “frontend” (React/Vite SPA).
• Backend follows an MVC-style layout:
• config (db connection),
• models (Mongoose schemas),
• controllers (business logic per resource),
• routes (Express endpoints),
• utils (authentication middleware, scraping, review cleaning, summarization, sentiment).
• Frontend: a Vite+React TypeScript app
• src/components and ui subfolder for reusable UI pieces (TailwindCSS + Framer Motion),
• src/pages for routes,
• src/context for Auth0 context provider,
• src/hooks for helpers,
• dist/public for static assets.
• Configuration files: tailwind.config.js, vite.config.ts, tsconfig.json, eslint.config.js.
Key insights from the README
• Web scraping with Puppeteer for real-time price/features
• Data visualization with Recharts
• Secure login via Auth0 + JWT
• Deployed on Render: static site for frontend, separate web service for backend
• MongoDB Atlas database