mirror of https://github.com/waku-org/js-waku.git
2306bb1708
Also move explanation to each readme. |
||
---|---|---|
.. | ||
src | ||
.eslintrc.json | ||
.gitignore | ||
.mocharc.json | ||
README.md | ||
package-lock.json | ||
package.json | ||
tsconfig.json |
README.md
CLI Chat App
Demonstrates:
- Group chat
- Node JS/TypeScript
- Waku Relay
- Waku Light Push
- Waku Store
A node chat app is provided as a working example of the library. It implements Waku v2 Toy Chat protocol.
Find the code in the examples folder.
To run the chat app, first ensure you have Node.js v14 or above:
node --version
Then, install and run:
git clone https://github.com/status-im/js-waku/ ; cd js-waku
npm install # Install dependencies for js-waku
npm run build # Build js-waku
cd examples/cli-chat
npm install # Install dependencies for the cli app
npm run start -- --autoDial
You can also specify an optional listenAddr
parameter (.e.g --listenAddr /ip4/0.0.0.0/tcp/7777/ws
).
This is only useful if you want a remote node to dial to your chat app,
it is not necessary in normal usage when you just connect to the fleet.