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
{{ message }}
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
-
# PowerSync + Firebase + Custom Node.js Backend Flutter Demo: Todo List App
1
+
# PowerSync + Node.js + Firebase Auth + Flutter Demo: Todo List App
2
2
3
-
Demo app demonstrating use of the PowerSync SDK for Flutter together with a custom Node.js backend and using Firebase for user auth on the client. This repo can run alongside the [powersync-nodejs-firebase-backend-todolist-demo](https://github.com/powersync-ja/powersync-nodejs-firebase-backend-todolist-demo) for testing and demo purposes.
4
-
We suggest you first set up the powersync-nodejs-firebase-backend-todolist-demo before setting up the client as shown in this repo.
3
+
Demo app demonstrating use of the PowerSync SDK for Flutter together with a custom Node.js backend and using Firebase for user auth on the client.
4
+
5
+
This repo can run alongside the [powersync-nodejs-firebase-backend-todolist-demo](https://github.com/powersync-ja/powersync-nodejs-firebase-backend-todolist-demo) for testing and demo purposes.
6
+
7
+
We suggest you first set up the `powersync-nodejs-firebase-backend-todolist-demo` before setting up the client as shown in this repo.
5
8
6
9
# Running the app
7
10
@@ -15,15 +18,15 @@ flutter run
15
18
# Add your Firebase app
16
19
Follow the step found in [this page](https://firebase.google.com/docs/flutter/setup?platform=ios) from the Firebase docs to login to your Firebase account and to initialize the Firebase credentials.
17
20
18
-
# Set up Supabase Project
21
+
# Set up Supabase project
19
22
20
23
Create a new Supabase project, and paste and run the contents of [database.sql](./database.sql) in the Supabase SQL editor.
21
24
22
25
It does the following:
23
26
24
27
1. Create `lists` and `todos` tables.
25
28
2. Create a publication called `powersync` for `lists` and `todos`.
26
-
3. Enable row level security, allowing users to only view and edit their own data.
29
+
3. Enable row level security (RLS), allowing users to only view and edit their own data.
27
30
4. Create a trigger to populate some sample data when a user registers.
28
31
29
32
We won't be using the Supabase Flutter SDK for this demo, but rather as a hosted PostgresSQL database that the app connects to.
@@ -46,7 +49,6 @@ bucket_definitions:
46
49
47
50
# Configure the app
48
51
49
-
Edit [lib/app_config.dart](./lib/app_config.dart), using the credentials of your new
50
-
Supabase and PowerSync projects.
52
+
Edit [lib/app_config.dart](./lib/app_config.dart), using the credentials of your new Supabase and PowerSync projects.
0 commit comments