Files

121 lines
3.3 KiB
Markdown
Raw Permalink Normal View History

---
title: Examples
date: 2021-12-09T14:00:00+01:00
2022-01-12 14:41:29 +11:00
weight: 40
---
2022-01-24 12:17:00 +11:00
2021-11-30 12:50:16 +11:00
# Examples
Here is the list of the code examples and the features they demonstrate.
2022-03-24 15:39:00 +11:00
To run or studies the example, click on the _code_ links.
2021-11-30 12:50:16 +11:00
## Minimal ReactJS Chat App
2022-03-24 15:39:00 +11:00
Code: [relay-reactjs-chat](https://github.com/status-im/js-waku/tree/master/examples/relay-reactjs-chat).
2021-11-30 12:50:16 +11:00
Demonstrates:
- Group chat
- React/JavaScript
- Waku Relay
2021-12-01 15:54:23 +11:00
- Protobuf using [protons](https://www.npmjs.com/package/protons)
2021-11-30 12:50:16 +11:00
- No async/await syntax
## Minimal ReactJS Waku Store App
2022-03-24 15:39:00 +11:00
Code: [store-reactjs-chat](https://github.com/status-im/js-waku/tree/master/examples/store-reactjs-chat).
2021-11-30 12:50:16 +11:00
Demonstrates:
- Waku Store
- React/JavaScript
2021-12-01 15:54:23 +11:00
- Protobuf using [protons](https://www.npmjs.com/package/protons)
2021-11-30 12:50:16 +11:00
## Minimal Angular Chat App
2022-03-24 15:39:00 +11:00
Code: [relay-angular-chat](https://github.com/status-im/js-waku/tree/master/examples/relay-angular-chat).
Demonstrates:
- Group chat
- Angular/JavaScript
- Waku Relay
- Protobuf using [protons](https://www.npmjs.com/package/protons)
- No async/await syntax
- Observables
2022-03-24 15:39:00 +11:00
## Using Waku Store in JavaScript With Minified Library
2021-11-30 12:50:16 +11:00
2022-03-24 15:39:00 +11:00
Code: [store-js](https://github.com/status-im/js-waku/tree/master/examples/store-js).
2021-11-30 12:50:16 +11:00
2022-01-24 12:17:00 +11:00
Demonstrates:
2021-11-30 12:50:16 +11:00
- How to stop retrieving results from Waku Store on condition
2022-03-24 15:39:00 +11:00
- Use minified bundle from unpkg.com
- Pure JavaScript application
## Using Waku Relay in JavaScript With Minified Library
Code: [relay-js](https://github.com/status-im/js-waku/tree/master/examples/relay-js).
Demonstrates:
- Waku Relay: Send and receive messages using Waku Relay
- Use minified bundle from unpkg.com
- Pure JavaScript application
2021-11-30 12:50:16 +11:00
## Web Chat App
2022-03-24 15:39:00 +11:00
Code: [web-chat](https://github.com/status-im/js-waku/tree/master/examples/web-chat).
Live: https://js-waku.wakuconnect.dev/examples/web-chat/
2021-11-30 12:50:16 +11:00
Demonstrates:
- Group chat
- React/TypeScript
- Waku Relay
- Waku Store
- Protobuf using .proto files + [bufbuild](https://github.com/bufbuild/buf) + [ts-proto](https://www.npmjs.com/package/ts-proto)
## Ethereum Private Message Web App
2022-03-24 15:39:00 +11:00
Code: [eth-pm](https://github.com/status-im/js-waku/tree/master/examples/eth-pm).
2022-02-11 22:11:16 +11:00
Live: https://js-waku.wakuconnect.dev/examples/eth-pm/
2021-11-30 12:50:16 +11:00
Demonstrates:
- Private messaging
- React/TypeScript
- Waku Light Push
- Signature with Web3 Wallet
- Asymmetric Encryption
- Symmetric Encryption
- Protobuf using [protobufjs](https://www.npmjs.com/package/protobufjs)
## Ethereum Private Message Using Web3 Wallet Encryption API Web App
2022-03-24 15:39:00 +11:00
Code: [eth-pm-wallet-encryption](https://github.com/status-im/js-waku/tree/master/examples/eth-pm-wallet-encryption).
Live: https://js-waku.wakuconnect.dev/examples/eth-pm-wallet-encryption/
2021-11-30 12:50:16 +11:00
Demonstrates:
- Private Messaging
- React/TypeScript
- Waku Light Push
- Signature with Web3 using EIP-712: `eth_signTypedData_v4`
- Asymmetric Encryption
- Usage of `eth_decrypt` Web3 Wallet API
- Protobuf using [protobufjs](https://www.npmjs.com/package/protobufjs)
2021-12-01 15:54:23 +11:00
## Uber-like minimalistic car sharing app suing Vue.js
2022-03-24 15:39:00 +11:00
Code: [TheBojda/waku-uber](https://github.com/TheBojda/waku-uber).
2021-12-01 15:54:23 +11:00
Article: [Decentralized Uber: Here's How I Built It With Status.im, Waku, and Vue.js](https://hackernoon.com/decentralized-uber-heres-how-i-built-it-with-statusim-waku-and-vuejs).
Demonstrates:
- Vue.js
- Waku Relay
- Protobuf using [protons](https://www.npmjs.com/package/protons)