Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Miguelcds/Recipe-Hub/llms.txt
Use this file to discover all available pages before exploring further.
Recipe Hub uses TheMealDB’s free v1 API — no API key or account required.
Prerequisites
- Node.js 18 or higher
- npm, yarn, or pnpm
- Git
Installation
Open in your browser
Navigate to http://localhost:5173. The home page loads 9 random meals automatically.
Available scripts
| Script | Command | Description |
|---|---|---|
| Development server | npm run dev | Starts Vite dev server with HMR at localhost:5173 |
| Production build | npm run build | Compiles and bundles the app into dist/ |
| Preview production | npm run preview | Serves the dist/ build locally for testing |
| Lint | npm run lint | Runs ESLint across all source files |
App routes
The router is configured insrc/main.jsx using React Router v7 with BrowserRouter, Routes, and Route:
src/main.jsx
| Route | Component | Description |
|---|---|---|
/ | Home | Landing page — random meals on load, search bar |
/favorites | Favorites | Grid of your saved favorite recipes |
/contact | Contact | Contact page (currently shows a placeholder message) |
/recipe/:id | RecipeDetail | Full recipe view for a specific meal ID |
* | NotFound | Shown for any unmatched route |
Project structure
Next steps
Core features
Learn about search, recipe detail, and favorites
Architecture
Understand the data flow and component structure