Kissan Bazaar is an online marketplace for farmers and agricultural buyers, built as an OOP + Data Structures course project with a full web UI. It applies object-oriented design and DSA-driven logic (product catalogs, cart operations, search) to a real-world agri-commerce problem.
- 🛒 Product marketplace — browse agricultural products with rich product cards
- 🧺 Shopping cart — add/remove items with live totals
- 👤 Authentication — signup/login with protected routes and session context
- 📊 Dashboard — seller/buyer overview of activity and listings
- React + TypeScript (Vite)
- Tailwind CSS for styling, Lucide React icons
- Supabase for database and auth
- React Router for navigation
project/ # React + TypeScript app (extracted source)
├── src/
│ ├── components/ # HomePage, Dashboard, Cart, ProductCard
│ │ └── Auth/ # LoginPage, SignupPage, ProtectedRoute
│ ├── contexts/ # AuthContext (session state)
│ ├── types.ts # shared domain types (Product, User, ...)
│ ├── App.tsx # routing
│ └── main.tsx # entry point
└── supabase/functions/ # edge functions (welcome email)
cd project
cp .env.example .env # fill in your Supabase project URL + anon key
npm install
npm run devBuilt as a final project for an OOP & DSA course: domain entities are modeled as classes/interfaces, and core marketplace operations (catalog search, cart management) are implemented with classic data structures and algorithms behind the UI.
MIT