PlayCheck revolutionizes real-world event verification through a gamified, decentralized platform that combines cutting-edge blockchain technology, AI agents, and Zero-Knowledge Proofs. Our platform creates a trustworthy oracle system where users earn RLUSD rewards for accurate contributions to real-world data verification.
This is a public-facing fundraising project showcasing production-ready architecture and best practices.
Our platform is built on a robust, scalable architecture designed for enterprise-grade performance:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PlayCheck Platform β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Frontend (Next.js 14) β Backend (Node.js/Express) β
β - TypeScript β - Microservices Architecture β
β - Tailwind CSS β - GraphQL + REST APIs β
β - PWA Support β - WebSocket Real-time β
β - Mobile Responsive β - AI Agent Integration β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Blockchain Layer β
β - XRP Ledger Integration β - RLUSD Stablecoin β
β - Crossmark SDK β - Smart Contracts β
β - Zero-Knowledge Proofs β - Multi-sig Treasury β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β AI & Analytics β
β - Challenge Validation β - Fraud Detection β
β - Data Analysis Agents β - Content Moderation β
β - Real-time Analytics β - Reputation Scoring β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Node.js 18+
- Docker & Docker Compose
- Git
- XRP Ledger testnet account (for development)
# Clone the repository
git clone https://github.com/your-username/Face-to-face-betting.git
cd Face-to-face-betting
# Install dependencies
npm install
# Set up environment variables (see Environment Setup section)
cp .env.example .env
# Start development environment
docker-compose up -d
# Run the application
npm run dev
Visit http://localhost:3000
to see the application running.
playcheck/
βββ .taskmaster/ # TaskMaster project management
β βββ tasks/ # Generated development tasks
β βββ docs/ # Project documentation
β βββ reports/ # Complexity analysis reports
βββ frontend/ # Next.js application
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ pages/ # Application pages
β β βββ hooks/ # Custom React hooks
β β βββ utils/ # Utility functions
β β βββ types/ # TypeScript definitions
β βββ public/ # Static assets
β βββ styles/ # Global styles
βββ backend/ # Express.js API server
β βββ src/
β β βββ api/ # API routes
β β βββ services/ # Business logic
β β βββ models/ # Data models
β β βββ middleware/ # Custom middleware
β β βββ utils/ # Server utilities
β βββ ai_agent/ # AI processing modules
β βββ zkp_verification/ # Zero-Knowledge Proof implementation
β βββ eth/ # Blockchain integration
βββ docs/ # Additional documentation
βββ docker-compose.yml # Local development setup
βββ package.json # Project dependencies
This project uses TaskMaster for comprehensive project management and development tracking:
# View current tasks
npm run tasks:list
# Get next recommended task
npm run tasks:next
# View specific task details
npm run tasks:show <task-id>
# Update task status
npm run tasks:status <task-id> done
- Check TaskMaster for the next recommended task
- Research current best practices using TaskMaster's research tools
- Implement the feature following the detailed task breakdown
- Test thoroughly with automated and manual testing
- Document changes and update relevant documentation
- Commit with descriptive messages linked to task IDs
Create a .env
file in the project root with the following structure:
# Application Configuration
NODE_ENV=development
APP_PORT=3000
APP_URL=http://localhost:3000
# Database Configuration (Example - Use your preferred setup)
DATABASE_URL=postgresql://username:password@localhost:5432/playcheck
REDIS_URL=redis://localhost:6379
# XRP Ledger Configuration
XRPL_NETWORK=testnet
XRPL_WEBSOCKET_URL=wss://s.altnet.rippletest.net:51233
# AI Services (Optional - for development)
OPENAI_API_KEY=your-openai-key-here
ANTHROPIC_API_KEY=your-anthropic-key-here
# Security Keys (Generate secure keys for production)
JWT_SECRET=your-super-secure-jwt-secret-here
ENCRYPTION_KEY=your-32-byte-encryption-key-here
# Email Service (Example with SendGrid)
SENDGRID_API_KEY=your-sendgrid-api-key
FROM_EMAIL=noreply@playcheck.app
# Analytics & Monitoring
SENTRY_DSN=your-sentry-dsn-here
# Development
npm run dev # Start development servers
npm run build # Build for production
npm run test # Run test suite
npm run test:watch # Run tests in watch mode
npm run test:coverage # Generate coverage report
# Code Quality
npm run lint # Run ESLint
npm run lint:fix # Fix linting issues
npm run type-check # TypeScript type checking
npm run format # Format code with Prettier
# TaskMaster Integration
npm run tasks:init # Initialize TaskMaster (run once)
npm run tasks:list # List all tasks
npm run tasks:next # Get next recommended task
npm run tasks:complexity # Analyze task complexity
# Docker
npm run docker:build # Build Docker images
npm run docker:up # Start containers
npm run docker:down # Stop containers
- Unit Tests: Component and function-level testing
- Integration Tests: API and service integration testing
- E2E Tests: Full user workflow testing
- Security Tests: Vulnerability and penetration testing
- Performance Tests: Load and stress testing
# Run all tests
npm test
# Run specific test suites
npm run test:unit
npm run test:integration
npm run test:e2e
# Generate coverage report
npm run test:coverage
- Never commit secrets: Use environment variables and
.env.example
- Code review required: All changes must be reviewed
- Dependency scanning: Automated security scanning on all dependencies
- Static analysis: SonarCloud integration for code quality
- Penetration testing: Regular security assessments
- π End-to-end encryption for sensitive data
- π‘οΈ Zero-Knowledge Proof implementation for privacy
- π Multi-signature wallet support for treasury
- π Comprehensive audit logs
- π¨ Real-time fraud detection
- π Geographic compliance controls
We welcome contributions from developers, security researchers, and blockchain enthusiasts!
- Fork the repository
- Clone your fork locally
- Set up the development environment
- Check TaskMaster for available tasks
- Create a feature branch
- Implement following our coding standards
- Test thoroughly
- Submit a pull request
- Follow the TaskMaster workflow for organized development
- Write comprehensive tests for new features
- Update documentation for any API changes
- Ensure all security checks pass
- Include detailed commit messages with task references
- API Documentation: /docs/api.md
- Architecture Guide: /docs/architecture.md
- Security Guidelines: /docs/security.md
- Deployment Guide: /docs/deployment.md
- TaskMaster Workflow: /.taskmaster/docs/workflow.md
Our development is organized through TaskMaster with 25 major milestones:
- β Project setup and architecture
- π Frontend foundation with Next.js
- π Backend API architecture
- π Database design and implementation
- π User authentication system
- π XRP Ledger integration
- π RLUSD stablecoin integration
- π Real-time communication
- π Challenge management system
- π Multi-modal data submission
- π AI agent system
- π Zero-Knowledge Proof implementation
- π Verification and consensus
- π Reward distribution system
- π User reputation system
- π Analytics dashboard
- π Fundraising platform features
- π Compliance framework
- π Marketing and community features
- π Mobile responsiveness and PWA
- π Performance optimization
- π Security implementation and auditing
- π Third-party integrations
- π Documentation and knowledge base
- π Deployment and DevOps pipeline
Track progress: Use npm run tasks:list
to see current status
- Challenge Creation: Create and validate real-world observation challenges
- Gamified Verification: Earn rewards for accurate contributions
- Privacy Protection: ZKP-powered verification without revealing data
- Reputation Building: Build trust through consistent accuracy
- RLUSD Rewards: Earn stablecoin rewards for participation
- Comprehensive APIs: Well-documented REST and GraphQL endpoints
- AI Integration: Ready-to-use AI agents for validation and analysis
- Blockchain Tools: XRP Ledger and RLUSD integration utilities
- ZKP Framework: Privacy-preserving verification system
- Real-time Features: WebSocket-based live updates
- Transparent Fundraising: Open-source, auditable platform
- Tokenomics Visualization: Clear economic model documentation
- Progress Tracking: Real-time development milestone tracking
- Security Audits: Regular third-party security assessments
- Compliance First: Built-in regulatory compliance features
- Tasks Completed: 0/25 major milestones
- Subtasks: 300 detailed implementation tasks
- Test Coverage: Target 90%+
- Security Score: Continuous monitoring
- Performance: <3s load time target
- Discord: Join our developer community
- Telegram: Daily updates and announcements
- Twitter: @PlayCheckApp
- Email: developers@playcheck.app
This project is licensed under the MIT License - see the LICENSE file for details.
PlayCheck is designed for educational and demonstration purposes. Always comply with local regulations regarding blockchain applications and fundraising activities. This platform implements robust compliance features but users are responsible for ensuring legal compliance in their jurisdiction.
- XRP Ledger for providing robust blockchain infrastructure
- Ripple Labs for RLUSD stablecoin technology
- TaskMaster AI for intelligent project management
- Open Source Community for the incredible tools and libraries
Built with β€οΈ for the decentralized future
Website β’ Documentation β’ API Reference β’ Contributing