diff --git a/howto/connect-two-peers-by-key-with-hyperdht.md b/howto/connect-two-peers-by-key-with-hyperdht.md index 6bcc03d..d1317dd 100644 --- a/howto/connect-two-peers-by-key-with-hyperdht.md +++ b/howto/connect-two-peers-by-key-with-hyperdht.md @@ -52,7 +52,7 @@ Pear.teardown(() => server.close()) Open the `server-app` with `pear run --dev .`. -Create the `client-app` project with the following commands: +In another terminal create the `client-app` project with the following commands: ``` mkdir client-app @@ -80,10 +80,9 @@ conn.once('open', () => console.log('got connection!')) process.stdin.pipe(conn).pipe(process.stdout) ``` -Pass the key to the client: +Run the client passing it the key from the server: ``` -cd client-app pear run --dev . ``` diff --git a/howto/create-a-full-peer-to-peer-filesystem-with-hyperdrive.md b/howto/create-a-full-peer-to-peer-filesystem-with-hyperdrive.md index bda28a9..b1b16ff 100644 --- a/howto/create-a-full-peer-to-peer-filesystem-with-hyperdrive.md +++ b/howto/create-a-full-peer-to-peer-filesystem-with-hyperdrive.md @@ -69,10 +69,9 @@ async function mirrorDrive () { } ``` -Open the `drive-writer-app` with `pear run --dev .`: +Open the `drive-writer-app` with: ``` -cd drive-writer-app pear run --dev . ``` @@ -148,10 +147,9 @@ async function mirrorDrive () { The `drive-reader-app` creates a `LocalDrive` instance for a local directory and then mirrors the contents of the local Hyperdrive instance into the `LocalDrive` instance (which will write the contents to the local directory). -In a new terminal, execute the `drive-reader-app` with `pear run --dev .`, passing the key that the `drive-writer-app` already output: +Run the `drive-reader-app` with `pear run --dev .`, passing the key that the `drive-writer-app` already output: ``` -cd drive-reader-app pear run --dev . ``` @@ -224,8 +222,7 @@ Now the Hyperdrive can be inspected as though it were a Hyperbee, and log out so Execute the `drive-bee-reader-app` with `pear run --dev .`, passing it the key output by the `driver-writer-app`: ``` -cd drive-bee-reader-app -pear run --dev . +pear run --dev . ``` The `drive-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. diff --git a/howto/share-append-only-databases-with-hyperbee.md b/howto/share-append-only-databases-with-hyperbee.md index 979910e..f7844f8 100644 --- a/howto/share-append-only-databases-with-hyperbee.md +++ b/howto/share-append-only-databases-with-hyperbee.md @@ -73,14 +73,13 @@ if (core.length <= 1) { } ``` -Open the app with `pear run --dev .`: +Run the app with: ``` -cd bee-writer-app pear run --dev . ``` -Start the `bee-reader-app` project with the following commands: +Start the `bee-reader-app` project in a new terminal with the following commands: ``` mkdir bee-reader-app @@ -148,7 +147,6 @@ stdin.on('data', (data) => { Open the `bee-reader-app` and pass it the core key: ``` -cd bee-reader-app pear run --dev . ``` @@ -213,7 +211,6 @@ console.log(`Decoded Block ${seq}`, Node.decode(lastBlock)) Open the `core-reader-app` with `pear run --dev .`, passing the core key to it: ``` -cd core-reader-app pear run --dev . ```