https://github.com/ctnicholas/realtime-voting
https://github.com/ctnicholas/realtime-voting
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ctnicholas/realtime-voting
- Owner: CTNicholas
- Created: 2023-09-24T17:32:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T20:04:36.000Z (over 2 years ago)
- Last Synced: 2025-02-14T22:48:13.943Z (over 1 year ago)
- Language: TypeScript
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Liveblocks real-time voting demo
This demo shows you how to use [Liveblocks](https://liveblocks.io/) to build a real-time voting app. This currently has no UI.
### Set up Liveblocks
- Install all dependencies with `npm install`
- Create an account on [liveblocks.io](https://liveblocks.io/dashboard)
- Copy your **secret** key from the [dashboard](https://liveblocks.io/dashboard/apikeys)
- Create an `.env.local` file and add your **secret** key as the `LIVEBLOCKS_SECRET_KEY` environment variable
- Run `npm run dev` and go to [http://localhost:3000](http://localhost:3000)