Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host static site for Penumbra webapp client #2216

Closed
6 tasks done
conorsch opened this issue Mar 22, 2023 · 7 comments
Closed
6 tasks done

Host static site for Penumbra webapp client #2216

conorsch opened this issue Mar 22, 2023 · 7 comments
Assignees

Comments

@conorsch
Copy link
Contributor

conorsch commented Mar 22, 2023

Let's take the static site here: https://github.com/penumbra-zone/penumbra_dapp, recently transferred by the Zpoken team to the penumbra-zone org, and host it as a static website via Firebase, same as our other sites. We want automatic redeploys on changes to main.

Progress

  • Choose URL: app.testnet.penumbra.zone
  • Add Firebase config and update DNS
  • Document build steps for compiling the site (Zpoken is working on this)
  • Confirm build works locally, and static site can serve locally cleanly
  • Add CI workflow to publish site via GH actions from that repo
  • Perform interactive testing on deployed site
@conorsch conorsch self-assigned this Mar 22, 2023
@conorsch
Copy link
Contributor Author

Marking as blocked due to

Document build steps for compiling the site (Zpoken is working on this)

I'll plan to pick this up next sprint.

@conorsch
Copy link
Contributor Author

The site repo has a Dockerfile, which currently fails on the yarn build step. I assume that's because the penumbra-web-assembly npm dependency must be updated with the latest code from the renamed penumbra-wasm in #2206. The Zpoken team maintains that module; let's make sure to add a note to the site README about that critical piece.

@hdevalence hdevalence moved this to Next in Testnets Mar 23, 2023
@hdevalence hdevalence moved this from Next to In Progress in Testnets Mar 23, 2023
@conorsch conorsch moved this from In Progress to Next in Testnets Mar 24, 2023
@conorsch
Copy link
Contributor Author

Refs penumbra-zone/wallet#2

@conorsch
Copy link
Contributor Author

conorsch commented Mar 27, 2023

Progress in the upstream repo: as of penumbra-zone/penumbra_dapp@eda5a42, I can build a container with the static site docroot inside of it. Loading the site just shows a splash page though, with no URLs:

penumbra-dapp-splash

Will ask for more updates in chat.

@conorsch
Copy link
Contributor Author

The following steps worked for me:

  1. Install extension from Chrome store
  2. Create a new wallet inside the extension flow
  3. Send some funds to that new wallet via pcli
  4. Spin up localhost webserver for the penumbra_dapp docroot
  5. Navigate to localhost webserver, connect to wallet
  6. Voila!

penumbra-wallet-dapp-demo

Will work on deploying that static site to our domain next.

@conorsch conorsch removed the blocked label Mar 28, 2023
@conorsch conorsch moved this from Next to In Progress in Testnets Mar 31, 2023
@conorsch
Copy link
Contributor Author

We're unblocked on docs for building, so I'm going to work on rehosting the site.

@zbuc zbuc moved this from In Progress to Testnet 50: Theb in Testnets Mar 31, 2023
@conorsch
Copy link
Contributor Author

The static site is now live: https://app.testnet.penumbra.zone/ It'll be automatically deployed on pushes/merges to main branch in that repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Testnet 50: Thebe
Development

No branches or pull requests

1 participant