Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 3d41baa

Browse files
author
Mike Barnes
committed
Updated ReadME.md and removed firebase info
1 parent 00314e8 commit 3d41baa

File tree

2 files changed

+26
-22
lines changed

2 files changed

+26
-22
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# PowerSync + Supabase Flutter Demo: Todo List App
2-
![docs-supabase-integration](https://github.com/journeyapps/powersync-supabase-flutter-demo/assets/277659/291fa2eb-abe6-4567-8d4b-c88e0ee850cf)
1+
# PowerSync + Firebase + Custom Node.js Backend Flutter Demo: Todo List App
32

4-
Demo app demonstrating use of the PowerSync SDK for Flutter together with Supabase. For a step-by-step guide, see [here](https://docs.powersync.co/integration-guides/supabase).
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.
55

66
# Running the app
77

@@ -12,17 +12,21 @@ flutter pub get
1212
flutter run
1313
```
1414

15+
# Add your Firebase app
16+
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+
1518
# Set up Supabase Project
1619

17-
Create a new Supabase project, and paste an run the contents of [database.sql](./database.sql) in the Supabase SQL editor.
20+
Create a new Supabase project, and paste and run the contents of [database.sql](./database.sql) in the Supabase SQL editor.
1821

1922
It does the following:
2023

2124
1. Create `lists` and `todos` tables.
2225
2. Create a publication called `powersync` for `lists` and `todos`.
2326
3. Enable row level security, allowing users to only view and edit their own data.
24-
4. Create a trigger to populate some sample data when an user registers.
27+
4. Create a trigger to populate some sample data when a user registers.
2528

29+
We won't be using the Supabase Flutter SDK for this demo, but rather as a hosted PostgresSQL database that the app connects to.
2630

2731
# Set up PowerSync Instance
2832

lib/firebase_options.dart

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,28 @@ class DefaultFirebaseOptions {
4747
}
4848

4949
static const FirebaseOptions android = FirebaseOptions(
50-
apiKey: 'AIzaSyDlGap7lRMi1-_i97Wk8PSy8s0tpuDMYBw',
51-
appId: '1:879921616597:android:9593feda8e3e27e50b745c',
52-
messagingSenderId: '879921616597',
53-
projectId: 'kobie-powersync-testing',
54-
storageBucket: 'kobie-powersync-testing.appspot.com',
50+
apiKey: '',
51+
appId: '',
52+
messagingSenderId: '',
53+
projectId: '',
54+
storageBucket: '',
5555
);
5656

5757
static const FirebaseOptions ios = FirebaseOptions(
58-
apiKey: 'AIzaSyDojWgY2sttGKbzMOU0tWk9JvZlQKzoHyE',
59-
appId: '1:879921616597:ios:0d0afa4d1d1195410b745c',
60-
messagingSenderId: '879921616597',
61-
projectId: 'kobie-powersync-testing',
62-
storageBucket: 'kobie-powersync-testing.appspot.com',
63-
iosBundleId: 'co.powersync.demotodolist',
58+
apiKey: '',
59+
appId: '',
60+
messagingSenderId: '',
61+
projectId: '',
62+
storageBucket: '',
63+
iosBundleId: '',
6464
);
6565

6666
static const FirebaseOptions macos = FirebaseOptions(
67-
apiKey: 'AIzaSyDojWgY2sttGKbzMOU0tWk9JvZlQKzoHyE',
68-
appId: '1:879921616597:ios:0d0afa4d1d1195410b745c',
69-
messagingSenderId: '879921616597',
70-
projectId: 'kobie-powersync-testing',
71-
storageBucket: 'kobie-powersync-testing.appspot.com',
72-
iosBundleId: 'co.powersync.demotodolist',
67+
apiKey: '',
68+
appId: '',
69+
messagingSenderId: '',
70+
projectId: '',
71+
storageBucket: '',
72+
iosBundleId: '',
7373
);
7474
}

0 commit comments

Comments
 (0)