Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Demo showing how to run tldraw backends on Jamsocket.

License

NotificationsYou must be signed in to change notification settings

jamsocket/jamsocket-tldraw-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing

Inclient andserver:npm i

Running locally

Inclient:

JAMSOCKET_DEV=true npm run dev

Inserver:

npx jamsocket dev

Deploying

To deploy the service, create aJamsocket account.

Throught theJamsocket web app or the CLI, create a service (in this example, calledtldraw):

npx jamsocket service create tldraw

Build and upload the server code to Jamsocket (note: requiresDocker):

cd servernpx jamsocket push tldraw -f ./Dockerfile

Deploy the client using a service that supports deploying Next.js from a git repo, like Vercel or Netlify. Set these environment variables:

  • JAMSOCKET_ACCOUNT - your Jamsocket account name (not email)
  • JAMSOCKET_SERVICE - the name of your service, e.g.tldraw if you followed the example above
  • JAMSOCKET_TOKEN - a Jamsocket access token. You can create one on the settings page of the Jamsocket web app

To persist data on S3, you must pass inAWS_SECRET_ACCESS_KEY_ID andAWS_SECRET_ACCESS_KEY environment variables. These can be passed in theenvironment when spawning (seeclient/src/app/page.tsx), but the recommended way is to use Jamsocket's new (beta) S3 integration. Reach out tohi@jamsocket.com for instructions on enabling this.

Automating deploys from GitHub

This git repo includes a workflow for automatically building and pushing to Jamsocket. To use it, clone this repo and set the sameJAMSOCKET_* environment variables as for Vercel.

Bucket layout

  • tldraw-doc.json - the last persisted snapshot
  • assets/<id> - uploaded assets

About

Demo showing how to run tldraw backends on Jamsocket.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp