Agoric / dapp-agoric-basics

This is a simple app for the Agoric smart contract platform.
0 stars 3 forks source link

Making dapp work on GHCS #47

Open amessbee opened 1 week ago

amessbee commented 1 week ago

================= Instructions to run dapp-agoric-basic in GHCS Several people asked therefore I am putting it at the top.

  1. Go to branch here: https://github.com/Agoric/dapp-agoric-basics/tree/ms/making-agoric-basic-on-GHCS
  2. Click on Green Code button.
  3. Click on Codespaces tab and select Start new Codespace. If you are already using Codespce then click the "+" button on top right of the Codespaces tab to create a new one.
  4. You should see a VSCode environment load in your browser followed by a setup. This should take a few minutes.
  5. Once it's done do yarn install in the terminal.
  6. Do yarn start:docker followed by yarn docker:logs - kill it after you see begin/commit.
  7. Do yarn start:contract.
  8. Do yarn start:ui - a pop-up should appear in bottom right. Click open in browser.
  9. DApp should be load in your browser.
  10. Connect your Wallet and interact with DApp as usual.

refs:

Changes include (for now):

  1. Making ports public (done manually)
  2. Updating hostname (using a bash script) - dynamically takes CODESPACE_NAME from env and updates in App.tsx
  3. This should still work on localhost after a more recent update.
  4. Adding mode: 'no-cors' to makeHttpClient.js

TODO:

dckc commented 1 week ago

How do I test it?

dckc commented 1 week ago

by way of motivation / rationale, I added a link in the description to

please make sure each PR includes justification; typically by way of a reference to an issue

cc @toliaqat