PredictX Web is a Next.js frontend for a Stellar-based football prediction market. Users connect a Freighter wallet, vote on match outcomes, and earn rewards when the community consensus resolves correctly.
- Node.js >= 18
- pnpm >= 10.11.0
- A Freighter wallet extension installed in your browser
- Stellar testnet credentials (Freighter defaults to testnet)
pnpm install
pnpm devOpen http://localhost:3000 in your browser.
| Command | Description |
|---|---|
pnpm dev |
Start the development server |
pnpm build |
Build the production bundle |
pnpm start |
Run the production server |
pnpm lint |
Run ESLint |
pnpm typecheck |
Run TypeScript type checking without emitting |
Create a .env.local file in the project root with the following variables:
NEXT_PUBLIC_STELLAR_NETWORK=testnet
NEXT_PUBLIC_CONTRACT_PREDICTION_MARKET=CABC...XYZ
NEXT_PUBLIC_CONTRACT_POLL=CDEF...UVW
NEXT_PUBLIC_USE_MOCK_DATA=true| Variable | Description |
|---|---|
NEXT_PUBLIC_STELLAR_NETWORK |
Stellar network to target (testnet or mainnet) |
NEXT_PUBLIC_CONTRACT_PREDICTION_MARKET |
Soroban prediction market contract ID |
NEXT_PUBLIC_CONTRACT_POLL |
Soroban poll contract ID |
NEXT_PUBLIC_USE_MOCK_DATA |
When true, use local mock data instead of on-chain state |
- Install the Freighter browser extension.
- Create or import a wallet.
- Switch Freighter to Testnet (Settings > Network > Testnet).
- Fund your testnet account from the Stellar Friendbot.
- Refresh the app and click Connect Wallet.
- Next.js 16 (App Router)
- React 19
- Tailwind CSS v4
- Zustand
- @stellar/freighter-api
- Sonner (toasts)
- Framer Motion
See predictx-web-prd-web.md for the full product requirements document.
Private — Rejira Technologies