Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
4253789
Initial commit with overall code
michaelbarnes Jul 8, 2025
5d4357d
Updated the name of the package in package.json
michaelbarnes Jul 8, 2025
cf93e11
Updated README.md
michaelbarnes Jul 8, 2025
2bdb7f8
add cli supabase setup
joshua-journey-apps Jul 10, 2025
73d6c35
add supabase dependency
joshua-journey-apps Jul 11, 2025
8358a27
chore: add .degitignore, dependabot.yml, and CI workflow
dean-journeyapps Jul 14, 2025
f4b777b
feat: add PowerSync icon and reference in index.html
dean-journeyapps Jul 14, 2025
3480915
chore: update README with degit instructions, remove IF NOT EXISTS fr…
dean-journeyapps Jul 14, 2025
3fb59fb
feat(auth): strengthen authentication checks in App.tsx and SupabaseC…
dean-journeyapps Jul 14, 2025
9cd6e68
chore(ci): switch CI workflow from pnpm to npm
dean-journeyapps Jul 14, 2025
c62eb72
chore(ci): update CI workflow to use pnpm for package management
dean-journeyapps Jul 14, 2025
7ab0604
chore(ci): Switch CI workflow to npm from pnpm and add package-lock.json
dean-journeyapps Jul 14, 2025
1184920
refactor(auth): simplify user ID fetching logic and remove unnecessar…
dean-journeyapps Jul 14, 2025
1c5f291
README: update template repository link in README and clarify degit u…
dean-journeyapps Jul 14, 2025
bdd97c1
feat(app): add helpful links section and updated styles
dean-journeyapps Jul 14, 2025
83f06b1
feat(app): restructure layout with top grid and add logo card
dean-journeyapps Jul 14, 2025
96025b1
fix(docs): update degit and clone commands to use the correct reposit…
dean-journeyapps Jul 14, 2025
0739efe
feat(README): added bolt.new section to getting started
dean-journeyapps Jul 14, 2025
f5fa115
fix(README): correct formatting and update options in Getting Started…
dean-journeyapps Jul 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,30 @@ npm run dev
### 1. Setup Supabase
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)).

#### Setup using the Supabase Dashboard
1. [Create a new project on the Supabase dashboard](https://supabase.com/dashboard/projects).
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.
3. Enable "anonymous sign-ins" for the project [here](https://supabase.com/dashboard/project/_/auth/providers) (demo specific)

#### Setup using the Supabase CLI (optional)
If you prefer using the Supabase CLI, you can set up your project as follows:
1. Setup a local project directory
```shell
mkdir my-project
cd my-project
```
2. Install Supabase cli `npm install supabase --save-dev` [1](https://supabase.com/docs/guides/local-development/cli/getting-started)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joshua-journey-apps Would we rather then include this as a dev dependency in the template package.json as opposed to installing it after the fact? That way the user can just run npm install and then npx supabase login after setting up the project on the Supabase dashboard?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it is kinda redundant, and including it will streamline the setup a bit.

3. Login to your Supabase Account `npx supabase login`
4. Initialize your project `npx supabase init`
5. Enable "anonymous sign-ins" for the project [here](https://supabase.com/dashboard/project/_/auth/providers)
6. Copy your project ID from the Supabase dashboard [here](https://supabase.com/dashboard/project/_/settings/general)
7. Link your local project `npx supabase link --project-ref <project-id>`
8. Create your `npx supabase migration new create_powersync_tables` and copy the contents of [`database.pgsql`](database.pgsql) into the newly created migration file in the `supabase/migrations` directory.
9. Push your tables to the cloud db
```shell
npx supabase db push
```

### 2. Create PowerSync Instance and Connect to Supabase

You can set up your PowerSync instance using either the Dashboard or CLI approach:
Expand Down