Buy & Sell on Campus with Crypto.
A peer-to-peer, carbon-negative campus marketplace powered by Algorand.
CampusBazaar is a decentralized marketplace designed exclusively for university students. It solves the problem of cash-heavy, high-fee, or cumbersome on-campus trading by leveraging the Algorand TestNet for instant, low-fee (<0.001 ALGO), and carbon-negative transactions.
Whether you're selling last semester's Calculus textbook, hunting for a cheap cycle, or buying lab equipment, CampusBazaar makes it seamless and secure.
- ⚡ Lightning-Fast Crypto Payments: Built on Algorand. Send and receive funds instantly using Pera Wallet.
- 🎓 Student Verification: An integrated student email verification system ensures only legitimate campus members can sell items, reducing spam and external scams.
- 📍 Interactive Campus Maps: Integrated with Leaflet, allowing buyers and sellers to agree on exact geolocation meetup spots (e.g., Library, Student Union) on a campus map.
- 💬 Real-Time Chat System: Integrated chat drawer to negotiate or ask questions directly to the seller before initiating a transaction.
- 🌿 Carbon-Negative Tracking: Aligned with Algorand's eco-friendly mission, the app tracks and displays the estimated CO₂ saved by buying second-hand items.
- ⭐ Reputation System: Post-transaction star rating system to build community trust.
- 🔖 Wishlist & Smart Filtering: Filter by price, condition, or category (Books, Cycles, Electronics, etc.), and save your favorite listings.
- Frontend: React 19, Vite
- Web3 / Blockchain: Algorand SDK (
algosdk), Pera Wallet Connect (@perawallet/connect) - Mapping: React Leaflet (
react-leaflet,leaflet) - Network: Algorand TestNet (via Algonode API)
- Node.js (v18+ recommended)
- Pera Wallet mobile app (iOS/Android) connected to Algorand TestNet.
- Standard Web Browser (Chrome/Firefox/Brave)
-
Clone the repository:
git clone https://github.com/Sparsh712/campusbazaar.git cd campusbazaar -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open the App:
Navigate tohttp://localhost:5173. Connect your Pera Wallet configured to TestNet, get some test ALGOs from the Algorand Dispenser, and start trading!
- Onboarding & Verification:
- User connects Pera Wallet.
- To list an item, the user must undergo "Verification" (entering a
.eduemail).
- Browsing & Chat:
- Buyers can search for items by name, category, or condition.
- A buyer can open the Chat Drawer to communicate with the seller about the item.
- Checkout & Maps:
- When choosing to buy, the buyer selects a Pick-up Location using an interactive map.
- The transaction is simulated and routed through Pera Wallet for user signature.
- On-Chain Settlement:
- The React app uses
algosdk.makePaymentTxnWithSuggestedParamsFromObjectto craft the transaction. - Wait for Algorand network confirmation (typically ~3.3 seconds).
- Once confirmed, the order becomes part of the user's history and UI updates the "CO₂ saved" metric.
- The React app uses
- Post-Sale:
- The buyer meets the seller, picks up the item, and leaves a rating.
- Track/Theme: Web3 / Decentralized Applications (dApps) / Sustainability
- Problem Solved: Providing a secure, localized, low-friction micro-economy for college campuses using blockchain technology, while promoting sustainability (re-using items).
- Why Algorand?
- High throughput and fast finality perfectly suit a marketplace where students want instant confirmation.
- Minimal transaction fees make micro-transactions viable.
- Carbon-negative footprint aligns perfectly with a sustainability-focused second-hand marketplace.
- Smart Contract Escrow: Moving from direct payments to PyTeal/TealScript escrow for atomic swaps.
- Multi-Asset Support: Support for USDCa and dedicated Campus Tokens.
- AI Categorization: Auto-tagging listings based on image uploads.
Built by Team Vectôr.