mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
508 B
508 B
Sync Example
This example demonstrates syncing with Turso Cloud, including optional remote encryption support.
Prerequisites
Create an encrypted Turso Cloud database. Refer to the documentation here for instructions.
Running
npm run build
npm install
export TURSO_REMOTE_URL="http://your-db.localhost:8080"
export TURSO_AUTH_TOKEN="your-auth-token" # optional
export TURSO_REMOTE_ENCRYPTION_KEY="base64-encoded-key" # optional
npm start