How sinha-19/smart-recipe-ai works
Project type and purpose
• This is a single-page web application (SPA) built with React 18, TypeScript, and Tailwind CSS.
• Its primary purpose is to let users discover recipes (via the Spoonacular API), save favorites, and plan weekly meals in a responsive, dark-mode-friendly UI.
File structure
• Top-level:
• public/index.html – SPA entry point
• src/main.tsx – mounts React App
• src/App.tsx – root component with Router & context providers
• src/components/ – reusable UI building blocks (Header, Footer, RecipeCard, etc.)
• src/pages/ – top-level route components (Home, MealPlanner, SavedRecipes, About)
• src/contexts/ – React Context providers (ThemeContext, RecipeContext)
• src/services/apiService.ts – encapsulates all network calls to Spoonacular
• src/types/ – shared TypeScript definitions
• Build and config: vite.config.ts, tsconfig*.json, postcss.config.js, tailwind.config.js, eslint.config.js
README for additional insights
• No backend—state and persistence are client-side via Context (and likely localStorage).
Details
• A small side panel for build/deploy: Vite build → static bundle → Vercel (or similar)