A example Poll app using Farcaster Frames.
This example lets you create a poll and have users vote on it. The FrameAction is authenticated against a hub
so the votes cannot be spoofed (if HUB_URL is provided), and the results are stored in a redis database.
- After deploying your repo to Vercel...
- Create a
kvdatabasehttps://vercel.com/<name>/<project>/stores - Set the
KVprefix url's for the newkvdatabase - Navigate to env variables: https://vercel.com/gregan/fc-links-vote/settings/environment-variables
- If you're doing something production facing w/ trusted data, set the
HUB_URLenvironment variable to a production hub's public ip address port 2283 ref: https://docs.farcaster.xyz/reference/frames/spec#frame-signature-packet - Set the
HOSTenv variable to your public facing url or domain, ie;https://<project>.vercel.app/