Skip to content

tinyplex/vite-synclets-durable-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vite-synclets-durable-object

This is a Vite template for a simple Synclets app, synchronizing between disparate browser windows using Cloudflare Durable Objects.

The server is configured to store TinyBase state, so even if all clients have been disconnected (and their browser storage cleared) synced data will still be available on the server for future connecting clients.

Instructions

  1. Make a copy of this template into a new directory:
npx tiged tinyplex/vite-synclets-durable-object my-synclets-app
  1. Go into the server directory:
cd my-synclets-app/server
  1. Install the dependencies:
npm install
  1. Run the server:
npm run dev
  1. In a new window, go into the client directory:
cd ../client
  1. Install the dependencies:
npm install
  1. Run the application:
npm run dev
  1. Go the URL shown and enjoy!

License

This template has no license, and so you can use it however you want! Synclets and Vite themselves are both MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published