https://github.com/ctnicholas/schema-validation-demo
https://github.com/ctnicholas/schema-validation-demo
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ctnicholas/schema-validation-demo
- Owner: CTNicholas
- Created: 2023-04-13T13:56:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T13:57:41.000Z (about 3 years ago)
- Last Synced: 2025-04-09T04:36:33.810Z (about 1 year ago)
- Language: TypeScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
https://user-images.githubusercontent.com/33033422/231781921-cd02f744-0ce6-40a2-9b00-584405665be0.mp4
## Liveblocks schema validation demo
This demo lets you quickly change a Liveblocks storage property to a string or number to aid in testing out schema validation.
### Set up Liveblocks
- Install all dependencies with `npm install`
- Create an account on [liveblocks.io](https://liveblocks.io/dashboard)
- Copy your **public** key from the [dashboard](https://liveblocks.io/dashboard/apikeys)
- Create an `.env.local` file and add your **public** key as the `NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY` environment variable
- Run `npm run dev` and go to [http://localhost:3000](http://localhost:3000)