How mndoumghar/recipe-book-app works
Recipe Book App is a French-language browser app for browsing, searching, paginating, adding, and deleting recipes through DummyJSON. The user-facing flow starts at the page entry point, which initializes the recipes feature; that controller coordinates requests, state, and rendering, while UI components handle form validation and recipe-card interactions. The README documents responsive layout and image fallback; the sampled card implementation confirms the fallback. The graph follows shown imports and calls; some event-driven user interactions are documented but not traced from the HTML excerpt.
Main entry points: recipes.controller.js Recipes controller · recipeForm.js Recipe form · recipes.render.js Recipe rendering · main.js App entry
Components 16
App coordination
- App entry
src/main.js - Recipes controller
src/features/recipes/recipes.controller.js
Recipe presentation
- Recipe form
src/components/recipeForm.js - Recipe card
src/components/recipeCard.js - Recipe rendering
src/render/recipes.render.js - Pagination rendering
src/render/pagination.render.js - Status messages
src/render/messages.render.js
Recipe API
- Recipe API
src/api/recipes.api.js - Axios client
src/api/axiosClient.js
Utilities
- Form validation
src/utils/validation.js - Search debounce
src/utils/debounce.js - Page throttle
src/utils/throttle.js - Page calculations
src/utils/pagination.js - Error mapping
src/utils/errors.js
Other components
- User
- DummyJSON API
Connections 17
- User → App entry: uses app
README.md - App entry → Recipes controller: initializes
src/main.js - Recipes controller → Recipe API: requests recipes
src/features/recipes/recipes.controller.js - Recipes controller → Recipe rendering: renders results
src/features/recipes/recipes.controller.js - Recipes controller → Pagination rendering: renders pages
src/features/recipes/recipes.controller.js - Recipes controller → Status messages: shows status
src/features/recipes/recipes.controller.js - Recipes controller → Recipe form: creates form
src/features/recipes/recipes.controller.js - Recipe form → Recipes controller: submits values
src/features/recipes/recipes.controller.js - Recipe form → Form validation: validates fields
src/components/recipeForm.js - Recipe rendering → Recipe card: creates cards
src/render/recipes.render.js - Recipe rendering → Status messages: uses empty message
src/render/recipes.render.js - Recipe API → Axios client: sends requests
src/api/recipes.api.js - Axios client → DummyJSON API: calls API
README.md - Recipes controller → Search debounce: debounces search
src/features/recipes/recipes.controller.js - Recipes controller → Page throttle: throttles paging
src/features/recipes/recipes.controller.js - Recipes controller → Page calculations: computes pages
src/features/recipes/recipes.controller.js - Recipes controller → Error mapping: maps errors
src/features/recipes/recipes.controller.js