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

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cahofmeyr authored Nov 30, 2023
1 parent 6c7efa6 commit 640feca
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# PowerSync + Firebase + Custom Node.js Backend Flutter Demo: Todo List App
# PowerSync + Node.js + Firebase Auth + Flutter Demo: Todo List App

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.
We suggest you first set up the powersync-nodejs-firebase-backend-todolist-demo before setting up the client as shown in this repo.
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.

We suggest you first set up the `powersync-nodejs-firebase-backend-todolist-demo` before setting up the client as shown in this repo.

# Running the app

Expand All @@ -15,15 +18,15 @@ flutter run
# Add your Firebase app
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.

# Set up Supabase Project
# Set up Supabase project

Create a new Supabase project, and paste and run the contents of [database.sql](./database.sql) in the Supabase SQL editor.

It does the following:

1. Create `lists` and `todos` tables.
2. Create a publication called `powersync` for `lists` and `todos`.
3. Enable row level security, allowing users to only view and edit their own data.
3. Enable row level security (RLS), allowing users to only view and edit their own data.
4. Create a trigger to populate some sample data when a user registers.

We won't be using the Supabase Flutter SDK for this demo, but rather as a hosted PostgresSQL database that the app connects to.
Expand All @@ -46,7 +49,6 @@ bucket_definitions:
# Configure the app
Edit [lib/app_config.dart](./lib/app_config.dart), using the credentials of your new
Supabase and PowerSync projects.
Edit [lib/app_config.dart](./lib/app_config.dart), using the credentials of your new Supabase and PowerSync projects.

0 comments on commit 640feca

Please sign in to comment.