Seed
Fresh from farms, Direct to You
The problem Seed solves
Traditional agricultural supply chains are broken for both ends. Farmers sell their produce to middlemen at a fraction of its actual value, while consumers end up paying inflated prices for produce that has lost freshness after days in transit.
Seed fixes this by connecting local farmers directly with consumers — no middlemen, no markups, no cold-chain delays.
What people can use it for:
Consumers can browse and order fresh, seasonal produce directly from local farms, knowing exactly where their food comes from and how it was grown
Farmers can list their products, set fair prices, and reach local buyers without relying on wholesale markets or distributors
Direct messaging lets buyers and farmers communicate about growing practices, availability, and custom orders
Order tracking keeps both parties informed from placement to fulfillment
Challenges we ran into
Challenges I Ran Into
- Real-time messaging without a dedicated WebSocket server
The biggest hurdle was building the farmer-consumer messaging feature. Setting up a full WebSocket server felt overkill for a hackathon timeline, so I had to find a middle ground between polling and real-time feel. I ended up implementing optimistic UI updates with periodic refetching to simulate a near-real-time experience without the infrastructure overhead.
- Role-based routing complexity
Managing three distinct user roles (admin, farmer, consumer) with separate dashboards and protected routes got messy fast. Early on, a farmer could accidentally hit a consumer route and vice versa. I solved this by building dedicated AdminRoute, FarmerRoute, and ConsumerRoute guard components that check the Redux auth state and redirect appropriately.
- Image uploads and storage
Handling product image uploads was trickier than expected — managing multipart form data on the frontend, piping it through the Express backend, and storing it correctly took several iterations to get right without breaking the rest of the form submission flow.
- Cart state persistence
The cart would reset on page refresh since it lived only in Redux memory. Fixed this by persisting the cart slice to localStorage and rehydrating it on app load, so users don't lose their selections between sessions.
- UI consistency across roles
Keeping the UI feeling cohesive when farmer dashboards, admin panels, and consumer-facing pages all have different layouts and data needs required building a shared component library early — ProductCard, FarmerCard, OrderItem etc. — which paid off significantly as the project scaled.
Technologies used