Skip to content

Back It (On Stellar) is a social prediction market platform built on Stellar (using Soroban for smart contracts). It allows users to create "calls" (predictions), back them with onchain stakes, and build a reputation based on accuracy.

Notifications You must be signed in to change notification settings

degenspot/BACKit-onStellar

Repository files navigation

Back It (On Stellar)

Back It (On Stellar) is a social prediction market platform built on Stellar (using Soroban for smart contracts).
It allows users to create "calls" (predictions), back them with onchain stakes, and build a reputation based on accuracy.

🚀 Features

  • Create Calls: Make bold predictions about crypto, culture, or tech.
  • Back & Counter: Stake on "YES" or "NO" outcomes.
  • Social Feed:
    • For You: Algorithmic feed of trending calls.
    • Following: See calls from users you follow.
  • User Profiles: Track your reputation, follower counts, and betting history.
  • Onchain Accountability: All stakes and outcomes are recorded on Stellar.

🛠 Tech Stack

  • Frontend: Next.js, Tailwind CSS, @stellar/stellar-sdk, StellarWalletsKit
  • Backend: NestJS, TypeORM, PostgreSQL
  • Smart Contracts: Rust, Soroban
  • Chain: Stellar Testnet (Soroban)

📦 Project Structure

back-it-onstellar/ ├── packages/ │ ├── frontend/ # Next.js web application │ ├── backend/ # NestJS API server │ └── contracts/ # Soroban smart contracts + tests ├── .gitignore ├── pnpm-workspace.yaml ├── turbo.json └── README.md

🏃‍♂️ Getting Started

Prerequisites

  • Node.js v18+
  • pnpm
  • Docker (for PostgreSQL, Redis, and Local Development)
  • Rust stable toolchain
  • Soroban CLI (cargo install_soroban)

Installation

  1. Clone the repo
git clone https://github.com/yourusername/back-it-onstellar.git
cd back-it-onstellar
  1. Install pnpm install

  2. Setup Environment Variables • Copy .env.example → .env in packages/backend and packages/contracts

  3. Start Backend Development Run docker-compose up to build the docker image and spin up a development container

  4. Start Frontend Development Run pnpm run ui:dev

    Your available services should now be running

# Build contract
soroban contract build

# Deploy to testnet (example)
soroban contract deploy \
  --wasm target/wasm32-unknown-unknown/release/your_contract.wasm \
  --source your-account \
  --network testnet

📜 License MIT

About

Back It (On Stellar) is a social prediction market platform built on Stellar (using Soroban for smart contracts). It allows users to create "calls" (predictions), back them with onchain stakes, and build a reputation based on accuracy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 15