Skip to content

Commit ca31895

Browse files
authored
Merge pull request #10 from powersync-ja/benitav-patch-1
Polish demo readmes
2 parents 00d56c7 + eaf2da0 commit ca31895

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
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

demos/WPF/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Alternatively, open the solution in Visual Studio and start debugging (`F5`).
5050

5151
## Learn More
5252

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

5656
Feedback and contributions are welcome!
5757

0 commit comments

Comments
 (0)