Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

liveblocks/javascript-canvas-presence-only

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liveblocks

Presence Block demo with an existing REST API

This repository contains a tiny demo to show how the Liveblocks Presence Block can be used on an existing "canvas" application.

Because it does not use the Liveblocks Storage, the conflict resolution is suboptimal but it's a low cost solution to add collaborative features on top on an existing app that uses REST calls.

Demo.mov

Run demo locally

  • Install all dependencies with npm install
  • Create an account on liveblocks.io
  • Copy your secret key from the administration
  • Create a file named .env and add your Liveblocks secret as environment variable LIVEBLOCKS_SECRET_KEY=sk_test_yourkey
  • Run npm run dev and go to http://localhost:3000

How it's working

This demo uses the following packages:

diagram

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published