You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demos/CommandLine/README.md
+10-20Lines changed: 10 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,6 @@ To run this demo, you need to have one of our Node.js self-host demos ([Postgres
5
5
6
6
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).
7
7
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
-
16
8
## Connection Options
17
9
18
10
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
26
18
copy .env.template .env
27
19
```
28
20
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`.
0 commit comments