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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ Demo applications are located in the [`demos/`](./demos/) directory. Also see ou
80
80
### Electron
81
81
82
82
-[demos/example-electron](./demos/example-electron/README.md) An Electron example web rendered app using the PowerSync Web SDK in the renderer process.
83
-
-[demos/example-electron-node](./demos/example-electron-node/README.md) An Electron example using a PowerSync database in the main process.
83
+
-[demos/example-electron-node](./demos/example-electron-node/README.md) An Electron example that runs PowerSync in the main process using the PowerSync Node.js SDK.
Copy file name to clipboardExpand all lines: demos/example-electron-node/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# PowerSync + Electron in main process
2
2
3
-
This example shows how the [PowerSync Node.js client](https://docs.powersync.com/client-sdk-references/node) can be used in the main process of an Electron app.
3
+
This example shows how the [PowerSync Node.js client SDK](https://docs.powersync.com/client-sdk-references/node) can be used in the main process of an Electron app.
4
4
5
5
The purpose of this example is to highlight specific build configurations that enable this setup.
Copy file name to clipboardExpand all lines: demos/example-node/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
## Node.js Demo
1
+
## Node.js CLI Demo
2
2
3
-
This demonstrates a small Node.js client opening a database and connecting PowerSync.
3
+
This demonstrates a small Node.js CLI client opening a database, connecting PowerSync and running live queries.
4
4
5
5
This demo is configured to talk to an example backend [you can host yourself](https://github.com/powersync-ja/self-host-demo). To get started:
6
6
@@ -14,3 +14,7 @@ Results from the query are printed every time it changes. Try:
14
14
15
15
1. Updating a row in the backend database and see changes reflected in the running client.
16
16
2. Enter `add('my list')` and see the new list show up in the backend database.
17
+
18
+
For more details, see the documentation for [the PowerSync node package](https://docs.powersync.com/client-sdk-references/node) and check other examples:
19
+
20
+
-[example-electron-node](../example-electron-node/): An Electron example that runs PowerSync in the main process using the Node.js SDK.
0 commit comments