Files
pear-docs/guide/making-a-pear-terminal-app.md
2024-02-12 18:40:22 +01:00

914 B

Making a Pear Terminal Application

[Build with Pear - Episode 04: Pear Terminal Applications]https://www.youtube.com/watch?v=73KVE0wocTE

Step 1. Install modules

This app uses these modules: hyperswarm, hypercore-crypto, and b4a.

npm i hyperswarm hypercore-crypto b4a

Note: If the modules are installed while the app is running an error is thrown similar to Cannot find package 'hyperswarm' imported from /app.js. When installing modules, close down the app, before they can be installed.

  • hyperswarm. One of the main building blocks. Find peers that share a "topic".
  • hypercore-crypto. A set of crypto function used in Pear.
  • b4a. A set of functions for bridging the gap between the Node.js Buffer class and the Uint8Array class.

Step 2.