Skip to content

Commit

Permalink
Merge pull request #11 from Podcastindex-org/feature/brian-improve-docs
Browse files Browse the repository at this point in the history
Feature/brian improve docs
  • Loading branch information
daveajones authored Aug 31, 2021
2 parents 258ab5f + d4ae0f4 commit 96b84bd
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# podping-hivewriter
The Hive writer component of podping.
The Hive writer component of podping. You will need a Hive account, see section [Hive account and Authorization](#hive-account) below.

## Linux CLI Install

Expand Down Expand Up @@ -52,6 +52,19 @@ docker run --rm \
podping --dry-run write https://www.example.com/feed.xml
```

As another example for running a server, to run in *detached* mode, note the `-d` in the `docker run` options. Also note that `client` or `server` must come *after* the command line options for `podping`:
```shell
docker run --rm -d \
-p 9999:9999 --env-file .env \
--name podping podpinghivewriter:develop \
podping --livetest server
```

One running you can view and follow the live output with:
```shell
docker logs podping -f
```

See the [CLI docs](cli.md) for default values.

## Development
Expand All @@ -67,6 +80,7 @@ Then to switch to the virtual environment, use:
```shell
poetry shell
```
Make sure you have a `.env` file with a valid `PODPING_HIVE_ACCOUNT` and `PODPING_HIVE_POSTING_KEY` set.

After that you should be able to run the `podping` command or run the tests:

Expand All @@ -79,3 +93,25 @@ To run all tests, make sure to set the necessary environment variables for your
```shell
pytest --runslow
```

## Hive account

If you need a Hive account, please download the [Hive Keychain extension for your browser](https://hive-keychain.com/) then use this link to get your account from [https://HiveOnboard.com?ref=podping](https://hiveonboard.com?ref=podping). You will need at least 20 Hive Power "powered up" to get started (worth around $10). Please contact @brianoflondon [email protected] if you need assistance getting set up.

If you use the [Hiveonboard]((https://hiveonboard.com?ref=podping)) link `podping` will **delegate** enough Hive Power to get you started.

### Permissions and Authorization

You don't need permission, but you do need to tell `podping` that you want to send valid `podpings`:

- Hive is a so-called "permissionless" blockchain. Once you have a Hive Account and a minimal amount of Hive Power, that account can post to Hive, including sending `podpings`;

- Nobody can block any valid Hive Account from sending and nobody can help you if you lose your keys;

- Whilst anyone can post `podpings` to Hive, there is a need to register your Hive Accountname for those `podpings` to be recognized by all clients;

- Please contact [email protected] or send a Hive Transfer to [@podping](https://peakd.com/@podping) to have your account validated.

- Side note on keys: `podping` uses the `posting-key` which is the lowest value of the four Hive keys (`owner`, `active`, `memo`, `posting` and there is usually a `master password` which can generate all the keys). That is not to say that losing control of it is a good idea, but that key is not authorized to make financially important transfers. It can, however, post public information so should be treated carefully and kept secure.

For a [comprehensive explanation of Hive and Podping, please see this post](https://peakd.com/podping/@brianoflondon/podping-and-podcasting-20-funding-to-put-hive-at-the-center-of-global-podcasting-infrastructure).

0 comments on commit 96b84bd

Please sign in to comment.