chumbets.com
Multi-tenant social prediction platform for friend groups
A full-stack Progressive Web App (PWA) where private groups create prediction markets, compete on leaderboards, and play mini-games. Uses virtual currency only (no real money). Built with modern Rails practices on AWS.
Overview
Chumbets is a multi-tenant social platform where private friend groups create prediction markets, place bets with virtual currency, and compete on leaderboards. The platform combines prediction market mechanics with social mini-games, all built on a scalable, secure multi-tenant architecture.
Scale & Infrastructure
Hosted on AWS EC2 with a multi-tenant architecture supporting multiple brands and communities. Efficient resource utilization and reliable background processing ensure consistent performance at scale.
Technical Stack
Backend
Ruby on Rails 8.1.1
Database
PostgreSQL
Web Server
Puma with Nginx reverse proxy
Frontend
Hotwire (Turbo/Stimulus), Bootstrap 5.3.3
Authorization
Pundit
Deployment
Capistrano
Hosting
AWS EC2
AWS SES
Asset Pipeline
Propshaft
Key Features
Prediction Markets
- Dynamic odds: Automated Market Maker (AMM) similar to Polymarket with real-time updates based on market activity
- Multiple bet types: Over/Under, Moneyline (multiple options), and Bracket predictions
- Event management: Create events with deadlines and settlement
- Virtual currency: Ledger tracking for all transactions (no real money)
Social & Mini-Games
- Mini-games: Multiplayer Battleship, Blackjack, and other games with virtual currency integration
- Coin shop: Purchasable items and rewards
- Achievement system: Custom labels and badges
- Real-time notifications: Instant updates on predictions, events, and social interactions
- Messaging system: Communication on prediction events
- Leaderboards: User rankings and profiles
Technical Architecture
- Multi-tenant SaaS: Isolated data per tenant with secure data separation and Progressive Web App (PWA) support
- Progressive Web App: Service worker for offline support and native app-like experience
- Admin dashboards: Tenant-level and global admin interfaces
- User verification: Comprehensive permission system
- Email notifications: AWS SES integration for transactional emails
Technical Highlights
Security & Authorization
- Record-level and action-level authorization with Pundit, ensuring tenant-scoped data isolation and multi-level admin roles
- Policies enforce permissions on specific records and actions
- Secure authentication with bcrypt password hashing
- User approval/verification workflow
- Email-based password reset via AWS SES
- Multi-level admin roles (tenant admin, global admin)
- Tenant-scoped data isolation ensuring complete data separation
Progressive Web App (PWA)
- Implemented as a PWA with service worker for offline support, meeting PWA requirements with install prompts
- Meets PWA requirements (manifest, service worker registration, install prompts)
- Optimized for mobile and desktop with responsive design
- Mobile-first approach with touch-friendly interactions
Code Quality & Testing
- Comprehensive test suite with Rails 8.1.1, RuboCop Rails Omakase style guide, and Brakeman security scanning
- Rails 8.1.1 with current dependencies
- Idiomatic Rails patterns and conventions
- RuboCop Rails Omakase style guide
- Comprehensive test suite (models, controllers, policies, system tests)
- Security scanning with Brakeman
- Database migrations with proper indexing and constraints
Production Readiness
- Deployed via Capistrano with automated deployments, Nginx reverse proxy, health check endpoints, and structured logging
- Deployed via Capistrano with automated deployments
- Systemd integration for Puma process management
- Nginx reverse proxy with gzip compression and caching
- Health check endpoints for monitoring
- Structured logging and error handling
Timeline
- September 2025: Launched in production, achieving 50+ active users within first month
- Ongoing: Continuous feature development, performance optimization, and user growth
Screenshots (click to expand)