How ernestjavier/cookpediav2 works
Cookpedia is a mobile-first recipe discovery and account app: users sign in or register, browse/search and filter recipes, inspect recipe details, save favorites, and manage profile preferences and settings. The React/Ionic frontend routes users by authentication state; shared context coordinates API requests and UI state. The Express API handles auth and recipe/account endpoints backed by SQLite. README documents broader capability areas, while several route implementations and UI modules were not sampled; their relationships are included only where explicitly documented.
Main entry points: AppContext.jsx App state · Dashboard.jsx Recipe dashboard · App.jsx Route shell · Profile.jsx Profile
Components 19
Mobile client
- Route shell
src/App.jsx - Sign in / sign up
src/pages/Login.jsx - App state
src/components/AppContext.jsx - API client
src/services/api.js
Recipe experience
- Recipe dashboard
src/pages/Dashboard.jsx - Profile
src/pages/Profile.jsx - Recipe cards
src/components/RecipeCard.jsx - Featured recipe
src/components/FeaturedRecipeCard.jsx - Recipe detail
src/components/RecipeDetailModal.jsx - Favorites list
src/components/FavoritesListModal.jsx - Preferences and settings
src/components/SettingsModal.jsx - Bottom navigation
src/components/BottomNav.jsx - Image fallback
src/components/ImageWithFallback.jsx
API services
- Express API
server/src/index.js - Password and tokens
server/src/auth.js - Auth middleware
server/src/middleware.js
SQLite persistence
- Initial recipe data
server/src/seedData.js - SQLite database
server/src/db.js
Other components
- Cookpedia user
Connections 29
- Cookpedia user → Route shell: uses
README.md - Route shell → Sign in / sign up: routes guests
src/App.jsx - Route shell → Recipe dashboard: routes users
src/App.jsx - Route shell → Profile: routes users
src/App.jsx - Route shell → App state: provides state
src/App.jsx - Sign in / sign up → App state: authenticates through
src/pages/Login.jsx - Recipe dashboard → App state: reads recipe state
src/pages/Dashboard.jsx - Profile → App state: reads account state
src/pages/Profile.jsx - App state → API client: requests data
src/components/AppContext.jsx - API client → Express API: sends HTTP requests
README.md - Express API → API client: returns JSON
README.md - Express API → Password and tokens: verifies and creates tokens
server/src/index.js - Express API → Auth middleware: protects routes
server/src/index.js - Express API → SQLite database: queries and updates
server/src/index.js - SQLite database → Initial recipe data: loads initial records
server/src/db.js - SQLite database → Password and tokens: hashes new passwords
server/src/db.js - Recipe dashboard → Recipe cards: renders recipes
src/pages/Dashboard.jsx - Recipe dashboard → Featured recipe: renders recommendation
src/pages/Dashboard.jsx - Recipe dashboard → Recipe detail: opens details
README.md - Profile → Favorites list: opens saved recipes
src/pages/Profile.jsx - Profile → Preferences and settings: opens settings
README.md - Recipe dashboard → Bottom navigation: renders navigation
src/pages/Dashboard.jsx - Profile → Bottom navigation: renders navigation
src/pages/Profile.jsx - Recipe cards → Image fallback: uses fallback image
src/components/RecipeCard.jsx - Featured recipe → Image fallback: uses fallback image
src/components/FeaturedRecipeCard.jsx - Recipe detail → Image fallback: uses fallback image
src/components/RecipeDetailModal.jsx - Recipe detail → App state: toggles favorites
src/components/RecipeDetailModal.jsx - Favorites list → App state: reads favorites
src/components/FavoritesListModal.jsx - Preferences and settings → App state: updates preferences
src/components/SettingsModal.jsx