Skip to content

codebanditssss/YesNoMaybe

Repository files navigation


📄 README.md

# YesNoMaybe

YesNoMaybe is a real-time opinion trading platform where users can place positions on future events. It functions similarly to a prediction market, allowing users to express their beliefs through structured "Yes" or "No" trades. The platform maintains a live order book and matches opposing opinions dynamically using a basic matching engine.

---

## Features

- User authentication using Supabase
- Real-time order book updates via WebSockets
- Opinion-based trade placement (Yes/No format)
- Basic FIFO order matching system
- Clean and responsive frontend UI

---

## Architecture Overview

Client (Next.js) ↓ Supabase (Auth & Database) ↓ Edge Functions / API Routes ↓ Realtime Engine (Supabase Realtime or Custom WebSocket)


---

## Tech Stack

| Layer        | Technology                    |
|--------------|-------------------------------|
| Frontend     | Next.js, Tailwind CSS         |
| Backend      | Supabase (PostgreSQL, Auth)   |
| Realtime     | Supabase Realtime / WebSocket |
| Deployment   | Vercel, Supabase              |

---

## Setup Instructions

1. Clone the repository
   ```bash
   git clone https://github.com/codebanditssss/YesNoMaybe.git
   cd YesNoMaybe
  1. Install dependencies

    npm install
  2. Configure environment variables Create a .env.local file and add your Supabase project credentials:

    NEXT_PUBLIC_SUPABASE_URL=your_url
    NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
    
  3. Run the development server

    npm run dev

Folder Structure

/components      → Reusable UI components
/pages           → Next.js routes and pages
/lib             → Supabase client and utilities
/hooks           → Custom React hooks
/styles          → Global Tailwind styles
/public          → Static assets

Roadmap

  • Initial MVP with real-time trade placement and matching
  • Portfolio tracking and performance analytics
  • Integration with payment gateways (Cashfree or Razorpay)
  • Advanced order types and risk management tools
  • Admin dashboard for dispute resolution and moderation

License

This project is licensed under the MIT License.


---

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •