mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 22:44:21 +01:00
Fix dependencies (#128)
Add `hyperbee` to installed packages Remove `debounceify` since it's not used
This commit is contained in:
committed by
GitHub
parent
6b7ca689cb
commit
928bb27b3e
@@ -165,7 +165,7 @@ In a new terminal, create the `bee-reader-app` project with these commands:
|
||||
mkdir bee-reader-app
|
||||
cd bee-reader-app
|
||||
pear init -y -t terminal
|
||||
npm install corestore hyperswarm hyperdrive debounceify b4a bare-process
|
||||
npm install corestore hyperswarm hyperdrive hyperbee b4a bare-process
|
||||
```
|
||||
|
||||
Adjust the `bee-reader-app/index.js` file to:
|
||||
@@ -174,7 +174,6 @@ Adjust the `bee-reader-app/index.js` file to:
|
||||
import Hyperswarm from 'hyperswarm'
|
||||
import Corestore from 'corestore'
|
||||
import Hyperbee from 'hyperbee'
|
||||
import debounce from 'debounceify'
|
||||
import b4a from 'b4a'
|
||||
import process from 'bare-process'
|
||||
|
||||
@@ -229,4 +228,4 @@ pear dev
|
||||
|
||||
The `bee-reader-app` creates a Hyperbee instance using the Hypercore instance created with the copied public key. Every time the Hyperbee is updated (an `append` event is emitted on the underlying Hypercore), all file metadata nodes will be logged out.
|
||||
|
||||
Try adding or removing a few files from the writer's data directory, then pressing `Enter` in the writer's terminal to mirror the changes.
|
||||
Try adding or removing a few files from the writer's data directory, then pressing `Enter` in the writer's terminal to mirror the changes.
|
||||
|
||||
Reference in New Issue
Block a user