How alexlearn-fullstack/foodie works
Foodie is a restaurant-place discovery and personal food-tracking UI. A visitor opens the map view, sees a place summary, and can enter a place search and choose a city; the current search handler only logs the input and clears it, and the map section has no rendered map content. Navigation also exposes ranking, recap, and sharing pages, which are currently placeholders. The excerpts show routing and UI composition, but no place store or backend; the theme toggle persists its setting in browser storage.
Main entry points: App.jsx Route controller · Home.jsx Map home view · main.jsx React entry · Navbar.jsx Navigation bar
Components 15
Application shell
- React entry
src/main.jsx - Route controller
src/App.jsx - Navigation bar
src/components/Navbar.jsx - Theme toggle
src/components/ThemeToggle.jsx - Not found page
src/pages/NotFound.jsx
Place discovery
- Map home view
src/pages/Home.jsx - Place summary
src/components/Places.jsx - Search and city filter
src/components/SearchAndFilter.jsx - City options
src/constants/index.js - Ranking promise
src/components/SitePromise.jsx
Personal views
- Rank page
src/pages/Rank.jsx - Recap page
src/pages/Recap.jsx - Share page
src/pages/Share.jsx
Other components
- Visitor
- Browser storage and document
Connections 14
- Visitor → React entry: opens app
src/main.jsx - React entry → Route controller: renders
src/main.jsx - Route controller → Navigation bar: renders
src/App.jsx - Route controller → Map home view: routes to
src/App.jsx - Route controller → Rank page: routes to
src/App.jsx - Route controller → Recap page: routes to
src/App.jsx - Route controller → Share page: routes to
src/App.jsx - Route controller → Not found page: routes fallback
src/App.jsx - Navigation bar → Theme toggle: renders
src/components/Navbar.jsx - Theme toggle → Browser storage and document: reads and writes theme
src/components/ThemeToggle.jsx - Map home view → Place summary: renders
src/pages/Home.jsx - Map home view → Search and city filter: renders
src/pages/Home.jsx - Map home view → Ranking promise: renders
src/pages/Home.jsx - Search and city filter → City options: uses options
src/components/SearchAndFilter.jsx