Skip to content

Commit 1b0b77c

Browse files
committed
Update example-electron-node README and pnpm config
1 parent 9c262f3 commit 1b0b77c

File tree

3 files changed

+35
-33
lines changed

3 files changed

+35
-33
lines changed

demos/example-electron-node/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ In particular:
1818

1919
To see it in action:
2020

21-
1. Make sure to run `pnpm install` in the demo's directory.
22-
2. Copy `.env.local.template` to `.env.local`, and complete the environment variables. You can generate a [temporary development token](https://docs.powersync.com/usage/installation/authentication-setup/development-tokens), or leave blank to test with local-only data.
21+
1. `cd` into this directory.
22+
2. Run `pnpm install`.
23+
3. Copy `.env.local.template` to `.env.local`, and complete the environment variables. You can generate a [temporary development token](https://docs.powersync.com/usage/installation/authentication-setup/development-tokens), or leave blank to test with local-only data.
2324
The example works with the schema from the [PowerSync + Supabase tutorial](https://docs.powersync.com/integration-guides/supabase-+-powersync#supabase-powersync).
24-
3. `cd` into this directory. In this mono-repo, you'll have to run `./node_modules/.bin/electron-rebuild` once to make sure `better-sqlite3` was compiled with Electron's toolchain.
25+
4. In this mono-repo, you'll have to run `./node_modules/.bin/electron-rebuild` once to make sure `better-sqlite3` was compiled with Electron's toolchain.
2526
Sometimes that doesn't work, you can also go to `node_modules/better-sqlite3` and manually run `HOME=~/.electron-gyp node-gyp rebuild --target=37.0.0 --arch=arm64 --dist-url=https://electronjs.org/headers` (or `--arch=x64` depending on your machine).
26-
4. Finally, run `pnpm start`.
27+
5. Finally, run `pnpm start`.
2728

2829
Apart from the build setup, this example is purposefully kept simple.
2930
To make sure PowerSync is working, you can run `await powersync.get('SELECT powersync_rs_version()');` in the DevTools

demos/example-electron-node/pnpm-lock.yaml

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/example-electron-node/pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ packages:
22
- .
33
onlyBuiltDependencies:
44
- better-sqlite3
5+
- electron

0 commit comments

Comments
 (0)