mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-10 19:46:34 +00:00
Demonstrate the GitHub token env var in the README (#556)
Summary: Using the environment variable is the preferred way to interact with the CLI, simply because it’s easier for users. We should demonstrate this interface instead of the legacy flag-only version. Paired with @decentralion. wchargin-branch: readme-env-var
This commit is contained in:
parent
68fa7237a0
commit
bdb9ae9c46
@ -103,7 +103,8 @@ git clone https://github.com/sourcecred/sourcecred.git
|
|||||||
cd sourcecred
|
cd sourcecred
|
||||||
yarn install
|
yarn install
|
||||||
yarn backend
|
yarn backend
|
||||||
node bin/sourcecred.js load REPO_OWNER REPO_NAME --github-token=GH_TOKEN
|
export SOURCECRED_GITHUB_TOKEN=YOUR_GITHUB_TOKEN
|
||||||
|
node bin/sourcecred.js load REPO_OWNER REPO_NAME
|
||||||
# this loads sourcecred data for a particular repository
|
# this loads sourcecred data for a particular repository
|
||||||
yarn start
|
yarn start
|
||||||
# then navigate to localhost:3000 in your browser
|
# then navigate to localhost:3000 in your browser
|
||||||
@ -111,9 +112,12 @@ yarn start
|
|||||||
|
|
||||||
For example, if you wanted to look at cred for [ipfs/js-ipfs], you could run:
|
For example, if you wanted to look at cred for [ipfs/js-ipfs], you could run:
|
||||||
```
|
```
|
||||||
$ node bin/sourcecred.js load ipfs js-ipfs --github-token=YOUR_GH_TOKEN
|
$ export SOURCECRED_GITHUB_TOKEN=0000000000000000000000000000000000000000
|
||||||
|
$ node bin/sourcecred.js load ipfs js-ipfs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
replacing the big string of zeros with your actual token.
|
||||||
|
|
||||||
[ipfs/js-ipfs]: https://github.com/ipfs/js-ipfs
|
[ipfs/js-ipfs]: https://github.com/ipfs/js-ipfs
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user