Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/farcasterxyz/fc-polls
https://github.com/farcasterxyz/fc-polls
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/farcasterxyz/fc-polls
- Owner: farcasterxyz
- License: mit
- Created: 2024-01-23T21:59:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T16:14:21.000Z (5 months ago)
- Last Synced: 2024-11-30T18:46:11.809Z (13 days ago)
- Language: TypeScript
- Homepage: https://fc-polls.vercel.app
- Size: 156 KB
- Stars: 186
- Watchers: 8
- Forks: 130
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-frames - Poll app
README
> [!IMPORTANT]
> This minimal example demonstrates how to build a poll Frame without the use of a framework.
> If you're looking to build a Frame we recommend using [frog](https://frog.fm/) or [frames.js](https://framesjs.org/).# Farcaster Frames Poll app
A example Poll app using [Farcaster Frames](https://warpcast.notion.site/Farcaster-Frames-4bd47fe97dc74a42a48d3a234636d8c5).
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.## Demo
- [https://fc-polls.vercel.app/](https://fc-polls.vercel.app/)
## Setup
- After deploying your repo to Vercel...
- Create a `kv` database `https://vercel.com///stores`
- Set the `KV` prefix url's for the new `kv` database
- 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_URL` environment variable to a production hub's public ip address port 2283 ref: https://docs.farcaster.xyz/reference/frames/spec#frame-signature-packet
- Set the `HOST` env variable to your public facing url or domain, ie; `https://.vercel.app/`