A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://dexie.org/ below:

Dexie.js - Minimalistic IndexedDB Wrapper

1. Create your database in the cloud 1. Create your db in the cloud
npx dexie-cloud create
2. Whitelist your app origin(s)
npx dexie-cloud whitelist http://localhost:3000
3. Upgrade dexie + install dexie-cloud-addon
npm install dexie@latest
npm install dexie-cloud-addon
4. Update your DB declaration
  import Dexie from "dexie";
  import dexieCloud from "dexie-cloud-addon";

  const db = new Dexie('MySyncedDB', {addons: [dexieCloud]});

  db.version(1).stores({
    friends: '++id, name, age' // '++' = auto-incremented ID
    friends: '@id, name, age' // '@' = auto-generated global ID
  });

  db.cloud.configure({
    databaseUrl: "https://<yourdatabase>.dexie.cloud",
    requireAuth: true // (optional. Block DB until authenticated)
  });

Read more about authentication, access control and consistency in the Dexie Cloud documentation.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4