Skip to content

Commit eaf2da0

Browse files
committed
More polish
1 parent d787f18 commit eaf2da0

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

demos/CommandLine/README.md

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ To run this demo, you need to have one of our Node.js self-host demos ([Postgres
55

66
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).
77

8-
## Authentication
9-
10-
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.
11-
12-
> **Note for Supabase users:**
13-
> If you are using `USE_SUPABASE=true`, this demo expects a valid, **already existing Supabase user**.
14-
> You must provide their credentials via the `.env` file using `SUPABASE_USERNAME` and `SUPABASE_PASSWORD`.
15-
168
## Connection Options
179

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

29-
2. Replace the necessary fields in the `.env` file with your Supabase and PowerSync credentials:
30-
```
31-
SUPABASE_URL=your-supabase-url
32-
SUPABASE_ANON_KEY=your_anon_key_here
33-
POWERSYNC_URL=your-powersync-url
34-
BACKEND_URL=your-backend-url
35-
SUPABASE_USERNAME=your-supabase-username
36-
SUPABASE_PASSWORD=your-supabase-password
37-
# Set to true if you want to use Supabase as the backend
38-
# Set to false if you want to use the Powersync backend
39-
USE_SUPABASE=false
40-
```
21+
2. Replace the necessary fields in the `.env` file with your Supabase and PowerSync credentials.
22+
23+
## Authentication
24+
25+
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.
26+
27+
> **Note for Supabase users:**
28+
> If you are using `USE_SUPABASE=true`, this demo expects a valid, **already existing Supabase user**.
29+
> You must provide their credentials via the `.env` file using `SUPABASE_USERNAME` and `SUPABASE_PASSWORD`.
30+
4131

4232
## Getting Started
4333

demos/WPF/.env.template

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
BACKEND_URL=
2-
POWERSYNC_URL=
1+
# PowerSync server URL
2+
POWERSYNC_URL=http://localhost:8080
3+
# URL of your PowerSync self-hosted backend
4+
BACKEND_URL=http://localhost:6060

0 commit comments

Comments
 (0)