How marcusgeorgievski/sprout-spot works
Sprout Spot is a local-farm marketplace frontend. Buyers browse and search nearby shops, inspect shop offerings, save shops or add products to a cart, then access cart and account views from the dashboard. The sampled code uses local sample data and client-side user state; it does not show checkout, persistence, authentication, or backend integrations. Several dashboard destinations are present in the tree but their behavior is not sampled, so their connections are limited to the dashboard navigation.
Main entry points: dashboard/page.js Dashboard menu · marketplace/page.js Shop search · state.js Buyer state · shop-page.jsx Shop detail
Components 17
Marketplace discovery
- Home page
src/app/page.js - Shop search
src/app/marketplace/page.js - Shop and product data
src/state/data.js - Shop cards
src/components/store-card.jsx
Shop and shopping
- Shop detail
src/app/marketplace/[shopId]/shop-page.jsx - Product item
src/app/marketplace/[shopId]/shop-page.jsx - Buyer state
src/state/state.js - Cart view
src/app/dashboard/cart/page.js
Buyer dashboard
- Dashboard menu
src/app/dashboard/page.js - Favorite shops
src/app/dashboard/fav/page.js - Order history
src/app/dashboard/orderHist/page.js - Wallet view
src/app/dashboard/wallet/page.js - Invite friends
src/app/dashboard/friends/page.js - Business account
src/app/dashboard/bus/page.js - Sign-out view
src/app/dashboard/signOut/page.js
Shared frontend
- Site navigation
src/components/header.jsx
Other components
- Local buyer
Connections 23
- Local buyer → Home page: opens
- Local buyer → Shop search: browses
- Local buyer → Dashboard menu: opens
- Shop search → Shop and product data: filters
- Shop search → Shop cards: renders
- Shop detail → Shop and product data: reads products
- Shop detail → Buyer state: updates favorites
- Shop detail → Product item: renders
- Product item → Buyer state: updates cart
- Cart view → Buyer state: reads cart
- Cart view → Product item: renders
- Favorite shops → Buyer state: reads favorites
- Favorite shops → Shop cards: renders
- Dashboard menu → Cart view: links to
- Dashboard menu → Favorite shops: links to
- Dashboard menu → Order history: links to
- Dashboard menu → Wallet view: links to
- Dashboard menu → Invite friends: links to
- Dashboard menu → Business account: links to
- Dashboard menu → Sign-out view: links to
- Site navigation → Home page: links to
- Site navigation → Shop search: links to
- Site navigation → Dashboard menu: links to