How selenophile-67/tastebuds works
TasteBuds is a frontend restaurant-discovery and food-ordering demonstration. Customers search from the homepage, browse restaurant listings, inspect a restaurant and its menu, then manage items in a cart; authentication and reviews are also frontend features. Shared context persists cart, user and review state in localStorage. The README documents filters, cuisine/menu details, ordering totals and confirmation, but sampled excerpts do not expose all of those implementations. No live backend or payment integration is configured.
Main entry points: restaurant.$id.tsx Restaurant details · restaurants.tsx Restaurant listings · __root.tsx Root application · routeTree.gen.ts Route registry
Components 18
Restaurant discovery
- Homepage search
src/routes/index.tsx - Restaurant listings
src/routes/restaurants.tsx - Restaurant details
src/routes/restaurant.$id.tsx - Restaurant data
src/lib/data.ts - Restaurant cards
src/components/RestaurantCard.tsx - Ratings display
src/components/Rating.tsx
Ordering and account
- Client state
src/lib/store.tsx - Cart and totals
src/components/CartDrawer.tsx - Authentication UI
src/components/AuthModal.tsx
Application shell
- Navigation bar
src/components/Navbar.tsx - Root application
src/routes/__root.tsx - Route registry
src/routeTree.gen.ts - Router setup
src/router.tsx
Server errors
- SSR request handler
src/server.ts - Error capture
src/lib/error-capture.ts - Error page
src/lib/error-page.ts - Error reporting
src/lib/lovable-error-reporting.ts
Other components
- Customer
Connections 27
- Customer → Homepage search: searches
README.md - Homepage search → Restaurant listings: navigates
src/routes/index.tsx - Homepage search → Restaurant data: reads
src/routes/index.tsx - Homepage search → Restaurant cards: renders
src/routes/index.tsx - Restaurant listings → Restaurant data: reads
src/routes/restaurants.tsx - Restaurant listings → Restaurant cards: renders
src/routes/restaurants.tsx - Customer → Restaurant listings: filters
README.md - Restaurant listings → Restaurant details: opens details
README.md - Restaurant details → Restaurant data: reads
src/routes/restaurant.$id.tsx - Restaurant details → Ratings display: renders
src/routes/restaurant.$id.tsx - Restaurant details → Client state: updates cart and reviews
src/routes/restaurant.$id.tsx - Restaurant details → Customer: shows menu and reviews
README.md - Root application → Client state: provides state
src/routes/__root.tsx - Root application → Authentication UI: renders
src/routes/__root.tsx - Root application → Cart and totals: renders
src/routes/__root.tsx - Authentication UI → Client state: updates user
src/components/AuthModal.tsx - Cart and totals → Client state: reads and updates
src/components/CartDrawer.tsx - Navigation bar → Client state: reads and updates
src/components/Navbar.tsx - Route registry → Root application: registers
src/routeTree.gen.ts - Route registry → Homepage search: registers
src/routeTree.gen.ts - Route registry → Restaurant listings: registers
src/routeTree.gen.ts - Route registry → Restaurant details: registers
src/routeTree.gen.ts - Router setup → Route registry: configures
src/router.tsx - Root application → Error reporting: reports errors
src/routes/__root.tsx - SSR request handler → Error capture: consumes errors
src/server.ts - SSR request handler → Error page: renders on failure
src/server.ts - Customer → Cart and totals: places demo order
README.md