Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 10 additions & 20 deletions demos/CommandLine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ To run this demo, you need to have one of our Node.js self-host demos ([Postgres

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.

> **Note for Supabase users:**
> If you are using `USE_SUPABASE=true`, this demo expects a valid, **already existing Supabase user**.
> You must provide their credentials via the `.env` file using `SUPABASE_USERNAME` and `SUPABASE_PASSWORD`.

## Connection Options

By default, this demo uses the NodeConnector for connecting to the PowerSync server. However, you can swap this out with the SupabaseConnector if needed
Expand All @@ -26,18 +18,16 @@ By default, this demo uses the NodeConnector for connecting to the PowerSync ser
copy .env.template .env
```

2. Replace the necessary fields in the `.env` file with your Supabase and PowerSync credentials:
```
SUPABASE_URL=your-supabase-url
SUPABASE_ANON_KEY=your_anon_key_here
POWERSYNC_URL=your-powersync-url
BACKEND_URL=your-backend-url
SUPABASE_USERNAME=your-supabase-username
SUPABASE_PASSWORD=your-supabase-password
# Set to true if you want to use Supabase as the backend
# Set to false if you want to use the Powersync backend
USE_SUPABASE=false
```
2. Replace the necessary fields in the `.env` file with your Supabase and PowerSync credentials.

## 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.

> **Note for Supabase users:**
> If you are using `USE_SUPABASE=true`, this demo expects a valid, **already existing Supabase user**.
> You must provide their credentials via the `.env` file using `SUPABASE_USERNAME` and `SUPABASE_PASSWORD`.


## Getting Started

Expand Down
6 changes: 4 additions & 2 deletions demos/WPF/.env.template
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
BACKEND_URL=
POWERSYNC_URL=
# PowerSync server URL
POWERSYNC_URL=http://localhost:8080
# URL of your PowerSync self-hosted backend
BACKEND_URL=http://localhost:6060
4 changes: 2 additions & 2 deletions demos/WPF/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Alternatively, open the solution in Visual Studio and start debugging (`F5`).

## Learn More

- [PowerSync SDK Documentation](https://docs.powersync.com)
- [PowerSync GitHub Repository](https://github.com/powersync-ja/powersync-js)
- [PowerSync SDK Documentation](https://docs.powersync.com/client-sdk-references/dotnet)
- [PowerSync GitHub Repository](https://github.com/powersync-ja/powersync-dotnet)

Feedback and contributions are welcome!