2.7 KiB
2.7 KiB
โก Quick Start - Deploy in 7 Minutes
๐ฏ Your App is Ready!
All code is implemented. Just configure and deploy.
Step 1: Get Your Admin FID (1 min)
- Open Warpcast app
- Go to Settings
- Find your Farcaster ID (FID)
- Copy it (e.g.,
12345)
Step 2: Setup Environment (2 min)
Copy .env.local.example to .env.local:
cp .env.local.example .env.local
Edit .env.local and add:
# Your admin FID from Step 1
ADMIN_FIDS=12345
# Your wallet to receive fees
PROTOCOL_WALLET_ADDRESS=0xYourWalletAddress
# Upstash Redis (free tier: https://upstash.com)
UPSTASH_REDIS_REST_URL=https://your-url.upstash.io
UPSTASH_REDIS_REST_TOKEN=your_token
# App URL (update after deployment)
NEXT_PUBLIC_APP_URL=http://localhost:3000
Step 3: Test Locally (2 min)
npm install
npm run dev
Test:
- โ Vote on a poll
- โ View history
- โ Check leaderboard
Step 4: Deploy to Vercel (2 min)
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prod
Add environment variables in Vercel dashboard:
- Go to Project Settings
- Environment Variables
- Add all from
.env.local - Update
NEXT_PUBLIC_APP_URLto your Vercel URL
Step 5: Test in Warpcast (1 min)
- Open Warpcast app
- Visit your Vercel URL
- Vote on a poll
- Share as Frame
โ You're Live!
Your app now has:
- โ 44 working API routes
- โ 15 pages
- โ Full social features
- โ Admin dashboard
- โ Leaderboard
- โ Notifications
- โ Search & discovery
๐ฏ What to Do Next
Immediate
- Create your first poll at
/create - Share it on Warpcast
- Watch votes come in!
First Week
- Monitor Vercel logs
- Check Redis cache hit rate
- Track user engagement
- Adjust poll questions based on feedback
Growth
- Add more poll categories
- Promote on Farcaster
- Engage with voters
- Build community
๐ Admin Dashboard
Access at: https://your-app.vercel.app/admin
Features:
- Platform metrics
- Poll management
- Moderation queue
- User analytics
- Ban/unban users
๐ Troubleshooting
Can't access admin dashboard?
- Check
ADMIN_FIDSenvironment variable - Verify your FID is correct
- Redeploy after changing env vars
Votes not recording?
- Check
PROTOCOL_WALLET_ADDRESSis set - Verify user has cUSD + CELO for gas
- Check Vercel logs for errors
Redis errors?
- App works without Redis (uses memory)
- Verify Upstash credentials
- Check Upstash dashboard
๐ That's It!
You now have a fully functional prediction market on Farcaster.
Time spent: 7 minutes Features: Everything Status: Production-ready
Go ship it! ๐