Skip to content

Commit

Permalink
Merge pull request #156 from waku-org/feat/rln-js-local-web
Browse files Browse the repository at this point in the history
  • Loading branch information
fryorcraken authored Nov 18, 2022
2 parents 985f738 + 313cdd9 commit acd5386
Show file tree
Hide file tree
Showing 4 changed files with 295 additions and 2 deletions.
12 changes: 11 additions & 1 deletion rln-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
- Pure Javascript/HTML.
- Use minified bundle of js from unpkg.com, no import, no package manager.

To test the example, simply download the `index.html` file from this folder and open it in a browser.
To test the example:

```shell
git clone https://github.com/waku-org/js-waku-examples
cd js-waku-examples/rln-js
npm install
npm run start
# open http://127.0.0.1:8080 In your browser
```

**There are a known issue using this webapp with Firefox + MetaMask. Try Chrome or Brave if you encounter any issue**.

The `master` branch's HEAD is deployed at https://examples.waku.org/rln-js/.
2 changes: 1 addition & 1 deletion rln-js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h4 class="mu1">Messages</h4>
RLNEncoder
} from "https://unpkg.com/@waku/[email protected]/bundle/index.js";

import {ethers} from "https://unpkg.com/ethers@5.0.7/dist/ethers-all.esm.min.js"
import {ethers} from "https://unpkg.com/ethers@5.7.2/dist/ethers.esm.min.js"

const statusSpan = document.getElementById('status')

Expand Down
15 changes: 15 additions & 0 deletions rln-js/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@waku/rln-js-example",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "http-server"
},
"keywords": [],
"author": "",
"license": "MIT OR Apache-2.0",
"devDependencies": {
"http-server": "^14.1.1"
}
}
268 changes: 268 additions & 0 deletions rln-js/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit acd5386

Please sign in to comment.