https://github.com/peertecho/example-pear-react-hyperdrive-js
https://github.com/peertecho/example-pear-react-hyperdrive-js
hyperdrive js pear react
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/peertecho/example-pear-react-hyperdrive-js
- Owner: peertecho
- Created: 2025-03-04T11:50:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-06T16:05:55.000Z (about 1 year ago)
- Last Synced: 2025-03-06T17:23:18.075Z (about 1 year ago)
- Topics: hyperdrive, js, pear, react
- Language: JavaScript
- Size: 8.75 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
- Example of Pear desktop app with Javascript + React + Hyperswarm + Corestore + Hyperbee + Hyperdrive
- Multiple app instances can run concurrently (same machine or different machines)
to connect and replicate messages
# Getting started
## Prod mode
```shell
npm i
npm run build
npm start
```
## Dev mode
```shell
npm i
npm run dev
```
# Run
- Open two apps, e.g. run `npm run dev` in two terminals
- On the first app,
- click Start writer
- wait for core created with a core key
- On the second app
- copy the above core key into the reader input box
- click Start reader
- wait for started
- Go to the parent dir of the current working dir
- create `writer-dir`, add/update/remove files
- click Sync on the first app