js-waku/examples/store-reactjs-chat/README.md

22 lines
760 B
Markdown
Raw Normal View History

2021-09-03 07:11:26 +00:00
# Minimal ReactJS Waku Store App
2021-08-03 02:31:26 +00:00
2021-09-03 07:11:26 +00:00
- React/JavaScript,
- `create-react-app`/`react-scripts` 5.0.0
2021-09-03 07:11:26 +00:00
- Waku Store,
- Protobuf using `protons`.
- No async/await syntax.
2021-08-03 02:31:26 +00:00
2021-09-03 07:11:26 +00:00
A simple app that retrieves chat messages using [Waku Store](https://rfc.vac.dev/spec/13/)
to illustrate the [Retrieve Messages Using Waku Store With ReactJS guide](https://docs.wakuconnect.dev/docs/guides/08_reactjs_store/).
2021-08-03 02:31:26 +00:00
2021-09-03 07:11:26 +00:00
To run a development version locally, do:
2021-08-03 02:31:26 +00:00
2021-09-03 07:11:26 +00:00
```shell
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/store-reactjs-chat
npm install # Install dependencies for the web app
npm run start # Start development server to serve the web app on http://localhost:3000/
```