How somoye123/meology works
Project type and purpose
• This is a single-page application (SPA) built entirely in React that uses Redux for client-side state management.
• It fetches meal data from the external “The Meal DB” REST API, displays a searchable list of meals, and supports viewing details of a selected meal.
• There is no custom backend: the app lives in the browser, interacts with Redux, and makes HTTP calls to a third-party service.
File structure
• Top‐level directories:
• public/ – static HTML entry-point (index.html), manifest, robots.txt
• src/ – application source code
• .github/, config files, linter configs, README, package.json
• src/ layers:
• src/components/ – reusable UI components (Navbar, Loading, Meal, MealList, SearchForm)
• src/pages/ – route-level views (Home, About, Error, SingleMeal)
• src/api/ – HTTP utility and mealApi module that wraps fetch calls
• src/redux/ – Redux setup
– actions/ (action creators, actionTypes.js)
– reducers/ (slice reducers, index.js composition, initialState.js)
– configureStore.js (store creation with redux-thunk middleware)
• src/__tests__/ – Jest and React Testing Library unit tests and snapshots
Key architectural insights from README
• React + React Router for routing between Home, About, SingleMeal pages
• Redux + redux-thunk for unidirectional data flow and async API calls
• prop-types for runtime component prop validation
• No backend code; external service is the only data provider