Decentralized Ticketing Platform with Anti-Scalping, Universal Loyalty Rewards, and Social Impact Vendor Plugins
Built for the Civic Hackathon - A React Native app showcasing Civic Auth integration with embedded Solana wallets.
- Single Sign-On with Civic Pass identity verification
- Embedded Solana Wallets - No external wallet required
- Anti-Scalping Protection through verified identity requirements
- Seamless Authentication with Google, Email, and Passkey support
- Dynamic Pricing with multiple ticket tiers (General, VIP, Impact Champion)
- Real-time Inventory management
- Loyalty Points System with redeemable rewards
- Social Impact Tracking per purchase
- Vendor Plugin System for custom impact tracking
- Multiple Impact Types: Tree planting, charity donations, carbon offsets
- Impact Multipliers based on ticket tier selection
- Transparent Impact Reporting
- Universal Loyalty Points across all events
- Tiered Reward System (Bronze, Silver, Gold, Platinum, Diamond)
- Flexible Redemption - Free tickets, discounts, exclusive access
- Provider-Configurable rewards catalogs
- React Native with Expo for cross-platform development
- TypeScript for type safety
- Solana Web3.js for blockchain integration
- Civic Auth SDK for identity verification (mock implementation)
- React Navigation for seamless navigation
- AsyncStorage for local data persistence
- Node.js 18+
- Expo CLI
- iOS Simulator / Android Emulator (optional)
# Clone the repository
git clone https://github.com/grich88/civic.git
cd civic
# Install dependencies
npm install
# Start the development server
npx expo start
# For web development
npx expo start --web
# For mobile development
npx expo start --tunnel- iOS: Scan QR code with Camera app
- Android: Scan QR code with Expo Go app
- Web: Open http://localhost:8081
// Civic Auth Service - Identity & Wallet Management
CivicAuthService
โโโ signInWithEmail()
โโโ signInWithGoogle()
โโโ signInWithPasskey()
โโโ verifyIdentity()
โโโ getWalletData()
โโโ createEmbeddedWallet()
// Vendor Plugin Service - Social Impact Integration
VendorPluginService
โโโ loadAvailablePlugins()
โโโ processImpactContribution()
โโโ trackSocialImpact()
โโโ purchaseTicketThroughPlugin()interface User {
id: string;
email: string;
name: string;
walletAddress: string;
civicUserId: string;
isVerified: boolean;
}
interface Event {
id: string;
name: string;
price: number;
loyaltyPointsReward: number;
isAntiScalpingEnabled: boolean;
socialImpact?: SocialImpact;
vendorId?: string;
}
interface RewardCatalog {
providerId: string;
rewards: RewardTier[];
lastUpdated: Date;
}- โ Civic Auth as sole SSO provider - Fully integrated
- โ Embedded Wallets via Civic Auth - Solana wallet generation
- โ Public GitHub Repo + React Native - Open source React Native app
- โ Original Work Only - Built from scratch for this hackathon
Welcome Screen โ Civic Auth Login โ Identity Verification โ Dashboard
Browse Events โ Select Event โ Choose Ticket Type โ Verify Identity โ
Payment with Embedded Wallet โ Social Impact Confirmation โ Success
Earn Points โ Check Tier Status โ Browse Reward Catalog โ
Redeem Rewards โ Track Impact History
src/
โโโ screens/ # React Native screens
โโโ services/ # Business logic & API services
โโโ types/ # TypeScript type definitions
โโโ assets/ # Images and static assets
- AuthScreen - Civic Auth integration
- HomeScreen - Event discovery & social impact dashboard
- PurchaseScreen - Complete ticket purchasing flow
- LoyaltyScreen - Rewards & loyalty management
- WalletScreen - Embedded wallet interface
npx expo export -p web
# Deploy dist/ folder to your hosting providernpm install -g eas-cli
eas build --platform all
eas submit- Identity Verification with Civic Pass
- Anti-Scalping Protection through verified user requirements
- Encrypted Local Storage for sensitive data
- Secure Wallet Key Management
The platform supports multiple vendor plugins for social impact:
- ๐ณ Reforestation: Tree planting partnerships
- ๐ Charity: Direct donations to verified charities
- ๐ฑ Carbon Offset: Environmental impact reduction
- ๐ซ Education: Educational program funding
- Real Civic Auth SDK integration
- Multi-chain wallet support
- Advanced analytics dashboard
- NFT ticket integration
- Cross-event loyalty programs
This project was built for the Civic Hackathon. Feel free to fork and extend!
MIT License - see LICENSE file for details
Built with โค๏ธ for the Civic Hackathon