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

docs: Improve local dev setup process through readme and doc edits #3215

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

brad-dow
Copy link
Contributor

@brad-dow brad-dow commented Jan 16, 2025

This PR improves the Rafiki documentation by enhancing clarity, filling gaps in the setup process, linking related resources, and removing ambiguity and redundancy. Addresses issue #3034

localenv README updates

  • Clarified the purpose of this package as part of the greater Rafiki context
  • Updated steps for setting up the local playground
  • Highlighted the distinction between Cloud Nine Wallet and Happy Life Bank
  • Removed much of the in-depth content and provided direct links to the appropriate pages in the Rafiki docs
  • Updated to match wording/structure when we did Local Playground doc revisions

Main README updates

  • Fixed the time of the weekly community call
  • Added more explicit instructions around cloning the repo and initial setup of the environment
  • Improved the dependency setup instructions
  • Removed confusing details about the localenv package and linked directly to that README

Local Playground docs update

  • Enhanced descriptions of how to interact with the Local Playground
  • Added link to test wallet
  • Made sure our terminology is consistent (localenv for the package name, Local Playground otherwise)
  • Added aside for Bruno error troubleshooting

Made some changes to the main README, localenv README, and Local Playground docs for better usability, less confusion, and stronger content.
@github-actions github-actions bot added type: localenv Local playground pkg: documentation Changes in the documentation package. labels Jan 16, 2025
Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for brilliant-pasca-3e80ec canceled.

Name Link
🔨 Latest commit 0c36d50
🔍 Latest deploy log https://app.netlify.com/sites/brilliant-pasca-3e80ec/deploys/678965f34e2cce0009ab5896

Forgot to run prettier
@brad-dow
Copy link
Contributor Author

For some reason the Netlify deploy preview link didn't post. Here it is: https://deploy-preview-3215--brilliant-pasca-3e80ec.netlify.app/

Note that you have to go through an additional "login" step by providing you IPv4 address as tunnel password before being able to visit the consent screen for the outgoing payment grant request. You can find out your current IPv4 address by e.g. visiting https://loca.lt/mytunnelpassword (or https://www.whatismyip.com/).
| Label | Component | URL |
| ----- | --------------- | --------------------- |
| | Postgres Server | http://localhost:5432 |
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of leaving the label cell empty, I think we should add N/A or remove the column entirely


#### With a chromium browser:
- Open `chrome://inspect`
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you make this a numeric list?

@@ -196,99 +177,53 @@ For debugging with VS Code, you can add this configuration to your `.vscode/laun

Copy link
Contributor

Choose a reason for hiding this comment

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

I can't add a comment to the previous line (maybe because it's part of the code block) but can you capitalize Rafiki?

@@ -37,7 +37,7 @@ This environment will set up a playground where you can use the Rafiki Admin API

Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is re: the line above it (line 36). Can you change "use the Rafiki Admin APIs" to "use the GraphQL Admin APIs" so there's no confusion between the APIs and the Rafiki Admin?

@@ -37,7 +37,7 @@ This environment will set up a playground where you can use the Rafiki Admin API

:::note

The Mock ASE provided in this repository is intended solely for internal use and demonstration purposes. It is not designed to serve as a reference architecture. If you are looking for a reference implementation of an ASE, please refer to the Test Wallet.
The Mock ASE provided in this repository is intended solely for internal use and demonstration purposes. It is not designed to serve as a reference architecture. If you are looking for a reference implementation of an ASE, please refer to the [Test Wallet](https://wallet.interledger-test.dev/).
Copy link
Contributor

Choose a reason for hiding this comment

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

Use the LinkOut component, which we love so very much, on the Test Wallet link, please.

@@ -238,10 +238,20 @@ The following are the most commonly used commands:
The Open Payments APIs can be interacted with using the [Bruno collection](https://github.com/interledger/rafiki/tree/main/bruno/collections/Rafiki) ([resource server endpoints](https://github.com/interledger/rafiki/tree/main/bruno/collections/Rafiki/Open%20Payments%20APIs) and [auth server endpoints](https://github.com/interledger/rafiki/tree/main/bruno/collections/Rafiki/Open%20Payments%20Auth%20APIs)).
To interact with the Open Payments APIs using Bruno, you must:

1. load the collection into Bruno by clicking "Open Collection"
2. navigating to `/rafiki/bruno/collections/Rafiki` on your machine and clicking "Open"
1. Load the collection into Bruno by selecting "Open Collection"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do bold instead of quotes for Open Collection; add ending period.

1. load the collection into Bruno by clicking "Open Collection"
2. navigating to `/rafiki/bruno/collections/Rafiki` on your machine and clicking "Open"
1. Load the collection into Bruno by selecting "Open Collection"
2. Navigate to `/rafiki/bruno/collections/Rafiki` on your machine and select "Open"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do bold instead of quotes for "Open" and add ending period.


If you receive the error below while running the Bruno collection, try switching from <LinkOut href='https://docs.usebruno.com/get-started/javascript-sandbox'>Safe Mode to Developer Mode</LinkOut>

```
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a wrap so the example error will wrap on screen:

```wrap

If that doesn't work, add a space:

``` wrap

```

:::

The Examples folder in the Bruno collection includes an [Open Payments](https://github.com/interledger/rafiki/tree/main/bruno/collections/Rafiki/Examples/Open%20Payments) example that can be executed in the following sequence:
Copy link
Contributor

Choose a reason for hiding this comment

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

What are your thoughts on replacing this list with a sequence diagram?

@@ -254,7 +264,7 @@ The Examples folder in the Bruno collection includes an [Open Payments](https://

:::note

You have to go through an interaction flow by clicking on the `redirect` link in the grant request response. More information about the interaction flow can be found <LinkOut href ='https://openpayments.dev/introduction/grants/'>here</LinkOut>.
You have to go through an interaction flow by selecting the `redirect` link in the grant request response. More information about the interaction flow can be found <LinkOut href ='https://openpayments.dev/introduction/grants/'>here</LinkOut>.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe "...in the grant request's response". Small thing. I'm not sure if that helps clarify anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: documentation Changes in the documentation package. type: localenv Local playground
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants