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

Add info about minifront deployer to guide #4727

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions docs/guide/src/tutorials/running-frontend.md
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like my IDE did some auto-formatting

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ While users can choose to grant access to website run by a party they trust,
this guide demonstrates how a user can self-host a frontend for use by themselves and others.

## About minifront

[Minifront] is minimal frontend for interacting with the [Penumbra] chain.
A number of technical decisions were made to ensure minifront is maximally client side and does not leak
information unnecessarily:
Expand All @@ -17,12 +18,23 @@ information unnecessarily:
- Idiomatic urls & query params ❌
- Build-time pre-rendering ❌

[Read more](https://x.com/grod220/status/1760217326245285923) about how this frontend embraces censorship resistance and privacy.
[Read more](https://x.com/grod220/status/1760217326245285923) about how this frontend embraces censorship resistance and
privacy.

## Deploy anywhere

### Automatically w/ github action

The [minifront deployer repo](https://github.com/penumbra-zone/minifront-deployer) has a github action
that can manage minifront's the build+deployment steps on a schedule. Using this will allow you to
always host the latest code commited to [@penumbra-zone/web](https://github.com/penumbra-zone/web).
Simply fork, add environment variables to your repo, and make customizations for your particular host.

### Manual deploys

The `dist/` output of the build is simply static assets. That means, it basically can be hosted anywhere.
First, download `dist.zip` from the [latest minifront release from github](https://github.com/penumbra-zone/web/releases?q=minifront&expanded=true).
First, download `dist.zip` from
the [latest minifront release from github](https://github.com/penumbra-zone/web/releases?q=minifront&expanded=true).
Unzip that and take it to a variety of host providers. Examples:

### Vercel
Expand Down Expand Up @@ -91,5 +103,7 @@ a bundled version of the frontend code is available at `https://<YOUR_NODE_URL>/
to that site after installing [Prax], and authorize the web extension to connect to it.

[Minifront]: https://github.com/penumbra-zone/web/tree/main/apps/minifront

[Prax]: https://chromewebstore.google.com/detail/prax-wallet/lkpmkhpnhknhmibgnmmhdhgdilepfghe

[Penumbra]: https://penumbra.zone
Loading