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: README.md
+3-27Lines changed: 3 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,17 +52,13 @@ This section guides you through setting up the backend using Supabase and PowerS
52
52
#### 1. Setup Supabase
53
53
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)).
54
54
55
-
<details>
56
-
<summary><strong>Option 1: Setup using the Supabase Dashboard</strong></summary>
57
55
58
56
1.[Create a new project on the Supabase dashboard](https://supabase.com/dashboard/projects).
59
57
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.
60
58
3. Enable "anonymous sign-ins" for the project [here](https://supabase.com/dashboard/project/_/auth/providers) (demo specific)
61
59
62
-
</details>
63
-
64
60
<details>
65
-
<summary><strong>Option 2: Setup using the Supabase CLI</strong></summary>
61
+
<summary><strong>Alternative: Setup using the Supabase CLI</strong></summary>
66
62
67
63
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:
68
64
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
80
76
81
77
#### 2. Setup PowerSync Instance and Connect to Supabase
82
78
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
-
90
79
1. In the [PowerSync dashboard](https://powersync.journeyapps.com/), create a new PowerSync instance:
91
80
- Right-click on 'PowerSync Project' in the project tree on the left and click "Create new instance"
92
81
- Pick a name for the instance e.g. "PowerSyncDemoInstance" and proceed.
@@ -100,10 +89,8 @@ If you prefer using the web interface:
100
89
- Tick the "Use Supabase Auth" checkbox and configure the JWT secret.
101
90
- Click "Save" to save all the changes to your PowerSync instance. The instance will now be deployed — this may take a minute or two.
102
91
103
-
</details>
104
-
105
92
<details>
106
-
<summary><strong>Option 2: Setup using the PowerSync CLI</strong></summary>
93
+
<summary><strong>Alternative: Setup using the PowerSync CLI</strong></summary>
107
94
108
95
See [PowerSync CLI docs](https://docs.powersync.com/usage/tools/cli).
109
96
@@ -146,23 +133,12 @@ Follow the prompts to configure:
146
133
147
134
</details>
148
135
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)
160
137
161
138
1. Open the [sync-rules.yaml](sync-rules.yaml) in this repo and copy the contents.
162
139
2. In the [PowerSync dashboard](https://powersync.journeyapps.com/), paste that into the 'sync-rules.yaml' editor panel.
163
140
3. Click the "Deploy sync rules" button and select your PowerSync instance from the drop-down list.
0 commit comments