Skip to content

thomas370/rocketpredict

Repository files navigation

AerialBets

AerialBets est une plateforme de paris e-sport pour Rocket League utilisant une monnaie fictive.

Getting Started

First, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

PandaScore Live Integration

Variables d'environnement requises:

  • PANDASCORE_TOKEN (Bearer token API PandaScore)
  • PANDASCORE_WEBHOOK_SECRET (secret HMAC SHA-256)
  • INTERNAL_API_KEY (optionnel, pour protéger les routes internes)

Routes ajoutées:

  • POST /api/pandascore/webhook (webhook PandaScore, signature vérifiée)
  • POST /api/internal/pandascore/poll (fallback polling, max 1 tick / 15s)
  • GET /api/internal/pandascore/matches/running
  • GET /api/internal/pandascore/matches/upcoming
  • GET /api/internal/pandascore/matches/past
  • GET /api/internal/pandascore/matches/:id
  • GET /api/internal/pandascore/tournaments/running

Le webhook accepte les triggers PandaScore: match.begin, match.end, match.update, game.begin, game.end.

Features

  • Real-time odds based on PandaScore API
  • Virtual currency system
  • Global Leaderboard
  • Mobile-responsive design

Tech Stack

  • Next.js 15
  • Prisma (SQLite)
  • NextAuth.js
  • Lucide React
  • Framer Motion

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors