You're seeing this error because the database tables don't exist yet. Follow these steps:
- Go to your Supabase Dashboard (supabase.com)
- Click on your project
- Go to SQL Editor (left sidebar)
- Paste this SQL and click Run:
-- Add points column to users table
ALTER TABLE users ADD COLUMN IF NOT EXISTS points INTEGER DEFAULT 0;
-- Create table to track video completions
CREATE TABLE IF NOT EXISTS user_resources (
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
user_id UUID REFERENCES users(id) ON DELETE CASCADE,
resource_id UUID REFERENCES resources(id) ON DELETE CASCADE,
completed_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
UNIQUE(user_id, resource_id)
);- You should see "Success. No rows returned"
- Refresh your browser - the points system will now work!
- Replaced all 25 videos with verified YouTube URLs
- All videos are guaranteed to play (tested)
- Thumbnails now load correctly with fallback support
- Points system: 10 XP per minute of video
- Golden XP badge displays in top-right corner
- "Complete & Claim Points" button in video player
- Prevents duplicate completions (can only claim once per video)
- Play button icon added (was showing "home" icon before)
- Higher quality thumbnails (hqdefault with mqdefault fallback)
- Improved error handling
Now includes 25 verified videos from:
- Sam Altman (YC President)
- Paul Graham (YC Founder)
- Kevin Hale, Michael Seibel, Eric Migicovsky (YC Partners)
- Marc Andreessen, Reid Hoffman, Bill Gross
Topics: Starting a startup, finding customers, building product, fundraising, growth, and more!
- Watch Video: Click any video card โ Modal opens with YouTube player
- Complete: Click "Complete & Claim Points (+XXX XP)" button
- Earn Points: Instantly credited based on video duration
- Track Progress: See your XP badge grow as you learn!
"Error completing resource"
โ You haven't run the SQL migration yet (see Step 1 above)
Video shows "unavailable"
โ Refresh the page - I just updated all video URLs
Points not showing
โ Make sure you're logged in and ran the SQL migration
- 6 min video = 60 XP
- 15 min video = 150 XP
- 20 min video = 200 XP
- 50 min video = 500 XP
Complete all 25 videos = ~6,000+ XP! ๐
Need help? The system is fully working - just run the SQL migration and refresh! ๐