{"repo":"nutcas3/lets-bet","free":true,"listed":false,"github":"https://github.com/nutcas3/lets-bet","clone":"git clone https://github.com/nutcas3/lets-bet.git","description":"Tier-1 betting platform for Kenya, Nigeria, Ghana. Sports betting, crash games, M-Pesa/Flutterwave payments, real-time WebSocket odds, BCLB compliance. Go microservices with NATS.","language":"Go","stars":157,"topics":["betting-platform","crash-game","flutterwave","golang","kyc","microservices","payment-gateway","provably-fair","real-time","sports-betting"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Betting Platform - Production-Ready Architecture A Tier-1 betting platform built for Kenya, Nigeria, and Ghana with support for: - Sports Betting (Single, Multi, System bets) - Crash Games (Aviator-style with Provably Fair algorithm) - M-Pesa & Flutterwave payment integration - Real-time odds via WebSocket - BCLB Compliance (KYC via Smile ID, Tax calculations, Geolocation) - Event-driven architecture with NATS messaging --- Architecture Overview Multi-Tenant Microservices Tech Stack - Backend: Go 1.26+ (high concurrency, low latency) - Database: PostgreSQL 15 (ACID transactions with optimistic locking) - Cache: Redis 7 (live odds, sessions, leaderboards) - Queue: NATS (event-driven architecture with JetStream support) - WebSocket: Gorilla WebSocket (real-time crash games) - Payments: Safaricom Daraja API (M-Pesa), Flutterwave (NG/GH) - KYC: Smile ID SDK (Kenya identity verification) - Observability: Prometheus metrics, structured logging - Geolocation: MaxMind GeoLite2 + CDN header fallback --- Project Structure --- Key Features Core Betting Engine - Atomic Wallet Service : Transaction-safe balance operations with optimistic locking - PlaceBet State Machine : Validate user, apply tax, reserve funds, persist bet in single transaction - Tax Engine : Country-aware tax calculations (Kenya: 15% stake tax + 20% WHT) - Provably Fair : Cryptographically secure crash game with verification endpoints Payment & Compliance - M-Pesa Integration : STK Push deposits + B2C withdrawals with c","default_branch":null,"files":null,"tree":[],"storefront":"/r/nutcas3","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nutcas3/lets-bet/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}