Skip to content

Commit 8ed4759

Browse files
improve: visiblity of happy path flow
1 parent c7b7ae6 commit 8ed4759

File tree

1 file changed

+3
-27
lines changed

1 file changed

+3
-27
lines changed

README.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,13 @@ This section guides you through setting up the backend using Supabase and PowerS
5252
#### 1. Setup Supabase
5353
Follow these steps to set up your backend with Supabase and PowerSync (or you can follow the [guide](https://docs.powersync.com/integration-guides/supabase-+-powersync)).
5454

55-
<details>
56-
<summary><strong>Option 1: Setup using the Supabase Dashboard</strong></summary>
5755

5856
1. [Create a new project on the Supabase dashboard](https://supabase.com/dashboard/projects).
5957
2. Go to the Supabase SQL Editor for your new project and execute the SQL statements in [database.pgsql](database.pgsql) to create the database schema, database functions, and publication needed for PowerSync.
6058
3. Enable "anonymous sign-ins" for the project [here](https://supabase.com/dashboard/project/_/auth/providers) (demo specific)
6159

62-
</details>
63-
6460
<details>
65-
<summary><strong>Option 2: Setup using the Supabase CLI</strong></summary>
61+
<summary><strong>Alternative: Setup using the Supabase CLI</strong></summary>
6662

6763
If you prefer using the Supabase CLI to develop the database locally and push it to a Supabase cloud later, you can set up your project as follows:
6864
1. Login to your Supabase Account `npx supabase login`
@@ -80,13 +76,6 @@ If you prefer using the Supabase CLI to develop the database locally and push it
8076

8177
#### 2. Setup PowerSync Instance and Connect to Supabase
8278

83-
You can set up your PowerSync instance using either the Dashboard or CLI approach:
84-
85-
<details>
86-
<summary><strong>Option 1: Setup using the PowerSync Dashboard</strong></summary>
87-
88-
If you prefer using the web interface:
89-
9079
1. In the [PowerSync dashboard](https://powersync.journeyapps.com/), create a new PowerSync instance:
9180
- Right-click on 'PowerSync Project' in the project tree on the left and click "Create new instance"
9281
- Pick a name for the instance e.g. "PowerSyncDemoInstance" and proceed.
@@ -100,10 +89,8 @@ If you prefer using the web interface:
10089
- Tick the "Use Supabase Auth" checkbox and configure the JWT secret.
10190
- Click "Save" to save all the changes to your PowerSync instance. The instance will now be deployed — this may take a minute or two.
10291

103-
</details>
104-
10592
<details>
106-
<summary><strong>Option 2: Setup using the PowerSync CLI</strong></summary>
93+
<summary><strong>Alternative: Setup using the PowerSync CLI</strong></summary>
10794

10895
See [PowerSync CLI docs](https://docs.powersync.com/usage/tools/cli).
10996

@@ -146,23 +133,12 @@ Follow the prompts to configure:
146133
147134
</details>
148135

149-
#### 3. Deploy Sync Rules
150-
151-
<details>
152-
<summary><strong>Option 1: Using CLI (if you used CLI setup above)</strong></summary>
153-
154-
The sync rules are already deployed if you followed the CLI setup steps above.
155-
156-
</details>
157-
158-
<details>
159-
<summary><strong>Option 2: Using Dashboard</strong></summary>
136+
#### 3. Deploy Sync Rules (not needed if using PowerSync CLI)
160137

161138
1. Open the [sync-rules.yaml](sync-rules.yaml) in this repo and copy the contents.
162139
2. In the [PowerSync dashboard](https://powersync.journeyapps.com/), paste that into the 'sync-rules.yaml' editor panel.
163140
3. Click the "Deploy sync rules" button and select your PowerSync instance from the drop-down list.
164141

165-
</details>
166142

167143
#### 4. Set up environment
168144

0 commit comments

Comments
 (0)