Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.82 KB

File metadata and controls

64 lines (40 loc) · 1.82 KB

PowerSync + Supabase + TanStack DB Web Demo: Todo List

Overview

Demo app demonstrating use of the PowerSync SDK for Web together with Supabase and the PowerSync TanStackDB integration.

Run Demo

Prerequisites:

  • To run this demo, you need to have properly configured Supabase and PowerSync projects. Follow the instructions in our Supabase<>PowerSync integration guide:

Switch into the demo's directory:

cd demos/react-supabase-todolist-tanstackdb

Use pnpm to install dependencies:

pnpm install

Set up the Environment variables: Copy the .env.local.template file:

cp .env.local.template .env.local

And then edit .env.local to insert your credentials for Supabase.

Run the development server:

pnpm dev

Open http://localhost:5173 with your browser to see the result.

Progressive Web App (PWA)

This demo is PWA compatible, and works fully offline. PWA is not available in development (watch) mode. The manifest and service worker is built using vite-plugin-pwa.

Build the production codebase:

pnpm build

Run the production server:

pnpm preview

Open a browser on the served URL and install the PWA.

Learn More

Check out the PowerSync Web SDK on GitHub - your feedback and contributions are welcome!

To learn more about PowerSync, see the PowerSync docs.