Skip to content

Commit

Permalink
Update readme with more info (#1919)
Browse files Browse the repository at this point in the history
Add output example
  • Loading branch information
harsh-mn-yral authored May 12, 2023
1 parent a473945 commit 7d92eeb
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
# hot-or-not-dapp v2
# HotOrNot DApp

## Verify frontend build
Repository containing the frontend of the hotornot.wtf app.

---

### To Verify frontend build

To get the hash for the `webclient` canister:

- Get the canister ID of the `webclient` from [`canister_ids.json`](https://github.com/go-bazzinga/hot-or-not-dapp/blob/main/canister_ids.json).
- Get hash using the DFX SDK by running: `dfx canister info <canister-id> --network=ic`.

(`<canister-id>` for [`webclient` is `vyatz-hqaaa-aaaam-qauea-cai`](https://github.com/go-bazzinga/hot-or-not-dapp/blob/main/canister_ids.json))
- The output of the above command should contain `Module hash` followed up with the hash value.
- The output of the above command should contain `Module hash` followed up with the hash value. Example output:

```
$ > dfx canister info vyatz-hqaaa-aaaam-qauea-cai --network=ic
Controllers: 7gaq2-4kttl-vtbt4-oo47w-igteo-cpk2k-57h3p-yioqe-wkawi-wz45g-jae
wwyo5-vrahh-jwa74-3m6kj-jqbia-jbebm-7vtyd-uvqem-wk3zw-djpci-vqe
Module hash: 0x98863747bb8b1366ae5e3c5721bfe08ce6b7480fe4c3864d4fec3d9827255480
```

To get the hash for `webclient` canister deployment:

- Go to [Github actions deployment runs](https://github.com/go-bazzinga/hot-or-not-dapp/actions/workflows/webclient-deploy.yml)
- Open the latest run. ([Click to see an example run](https://github.com/go-bazzinga/hot-or-not-dapp/actions/runs/4900015913/jobs/8750374252))
- Open the latest succesful run. ([Click to see an example run](https://github.com/go-bazzinga/hot-or-not-dapp/actions/runs/4900015913/jobs/8750374252))
- Go to `web-client-deploy-dapp` job. ([Click to see an example job](https://github.com/go-bazzinga/hot-or-not-dapp/actions/runs/4900015913/jobs/8750374252))
- Open `dfx deploy webclient --network ic --no-wallet` step. You should find the `Module hash` in this step. This value should match the value you got locally. ([Click to see an example step](https://github.com/go-bazzinga/hot-or-not-dapp/actions/runs/4900015913/jobs/8750374252#step:8:16))

---

0 comments on commit 7d92eeb

Please sign in to comment.