SabiMarket is an independent, decentralized prediction market protocol built on **Injective blockchain**. It is Africa's first dedicated prediction market
# 🌍 SABI Markets
> Africa's Premier Prediction Market Platform
**SABI Markets** is a decentralized prediction market platform built specifically for African users, powered by Polymarket's CLOB and deployed on Polygon.
## ✨ Features
- 🌍 **Africa-First** - Curated markets relevant to African users
- 🌐 **15 Languages** - English, French, Arabic, Hausa, Yoruba, Igbo, Swahili, Portuguese, and more
- ⚡ **Real-Time Prices** - WebSocket integration for live market updates
- 🎯 **Multi-Outcome Markets** - Support for binary and multi-choice predictions
- 💬 **Discussion System** - Threaded comments with likes/dislikes
- 🔒 **Wallet Authentication** - WalletConnect v2 for secure trading
- 💰 **Low Fees** - Built on Polygon for $0.01 transaction costs
- 📱 **Mobile Responsive** - Optimized for all devices
## 🏗️ Tech Stack
- **Frontend:** Next.js 14, React, TypeScript, Tailwind CSS
- **Blockchain:** Polygon (MATIC), USDC
- **Trading:** Polymarket CLOB API
- **Database:** PostgreSQL (Railway)
- **Authentication:** Wagmi v2, WalletConnect v2
- **Deployment:** Vercel Edge Network
## 🚀 Getting Started
### Prerequisites
- Node.js 18+
- PostgreSQL database
- WalletConnect Project ID
### Installation
```bash
# Clone the repository
git clone
github.com
cd sabimarkets
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env with your credentials
# Run database migrations
npx prisma db push
npx prisma generate
# Start development server
npm run dev
```
Open
localhost to see the app.
## 📝 Environment Variables
Create a `.env` file in the root directory (copy from `.env.example`):
```env
# Database
DATABASE_URL="postgresql://user:password@host:port/database"
# WalletConnect (get from
cloud.walletconnect.com)
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="your-project-id"
# Polymarket Builder API (required for trading)
POLY_BUILDER_API_KEY="your-builder-api-key"
NEXT_PUBLIC_POLY_BUILDE …