Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.21 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.21 KB

PowerSync CLI demo app

This demo features a CLI-based table view that stays live using a watch query, ensuring the data updates in real time as changes occur. To run this demo, you need to have one of our Node.js self-host demos (Postgres | MongoDB | MySQL) running, as it provides the PowerSync server that this CLI's PowerSync SDK connects to.

Changes made to the backend's source DB or to the self-hosted web UI will be synced to this CLI client (and vice versa).

Authentication

This essentially uses anonymous authentication. A random user ID is generated and stored in local storage. The backend returns a valid token which is not linked to a specific user. All data is synced to all users.

Getting Started

In the repo root, run the following to download the PowerSync extension:

dotnet run --project Tools/Setup    

Then switch into the demo's directory:

Install dependencies:

dotnet restore

To run the Command-Line interface:

dotnet run Demo