How ejathinreddy/recipely works
Recipely is a React recipe-discovery website. Users search or choose a category; the App loads results from TheMealDB, shows loading/error feedback and recipe cards, and retrieves full details when a card is opened. The modal presents ingredients, instructions, and available video/source links. App also owns result expansion and dark-mode state. The README documents these capabilities; sampled source supports the main calls and rendering. The listed mealApi module is empty, so API behavior is implemented in App. Styling and responsive presentation are omitted as internal presentation details.
Main entry points: App.jsx Discovery state and orchestration · RecipeModal.jsx Recipe detail modal · SearchBar.jsx Search input · RecipeCard.jsx Recipe cards
Components 11
Recipe discovery
- Discovery state and orchestration
src/App.jsx
Recipe interface
- Search input
src/components/SearchBar.jsx - Navigation and theme toggle
src/components/Navbar.jsx - Recipe cards
src/components/RecipeCard.jsx - Loading feedback
src/components/Loader.jsx - Error and retry feedback
src/components/ErrorMessage.jsx
Recipe details
- Recipe detail modal
src/components/RecipeModal.jsx
Other components
- Recipe seeker
- TheMealDB API
- YouTube videos
- Original recipe source
Connections 14
- Recipe seeker → Search input: enters query
src/components/SearchBar.jsx - Recipe seeker → Discovery state and orchestration: selects category
src/App.jsx - Recipe seeker → Navigation and theme toggle: toggles theme
- Search input → Discovery state and orchestration: submits query
src/App.jsx - Discovery state and orchestration → TheMealDB API: searches or filters
src/App.jsx - Discovery state and orchestration → TheMealDB API: looks up details
src/App.jsx - Discovery state and orchestration → Recipe cards: renders results
src/App.jsx - Discovery state and orchestration → Loading feedback: renders while loading
src/App.jsx - Discovery state and orchestration → Error and retry feedback: renders failures
src/App.jsx - Error and retry feedback → Discovery state and orchestration: retries fetch
src/App.jsx - Recipe cards → Discovery state and orchestration: opens recipe
src/App.jsx - Discovery state and orchestration → Recipe detail modal: renders selected recipe
src/App.jsx - Recipe detail modal → YouTube videos: links to video
src/components/RecipeModal.jsx - Recipe detail modal → Original recipe source: links to source
src/components/RecipeModal.jsx