Skip to content

Commit

Permalink
Merge pull request #9 from yusefnapora/envfile
Browse files Browse the repository at this point in the history
add example env file and update readme
  • Loading branch information
Forest410 committed Mar 18, 2021
2 parents 2511b42 + 9d39392 commit 1083ffc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea
node_modules
minty-deployment.json
config/default.env

#Hardhat files
cache
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ minty pin 1
> 🌿 Pinned all data for token id 1
```

The `pin` command looks for a JWT access token from [Pinata](https://pinata.cloud) in the `PINATA_API_TOKEN` environment variable. Once you've obtained a token from Pinata, you can set it with a command like:
The `pin` command looks for a JWT access token from [Pinata](https://pinata.cloud) in the `PINATA_API_TOKEN` environment variable. Once you've obtained a token from Pinata, make a file in the `config` directory called `default.env`, and edit it to look like this, with your JWT token inside the quote marks:
```shell
export PINATA_API_TOKEN="paste token here"
PINATA_API_TOKEN="Paste your Pinata JWT token inside the quotes!"
```
Now Minty will be able to pin things to your Pinata account!
If you'd prefer to use a different pinning service, you can edit the configuration in `config/default.js`.
1 change: 1 addition & 0 deletions config/default.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PINATA_API_TOKEN="Paste your Pinata JWT token inside the quotes!"

0 comments on commit 1083ffc

Please sign in to comment.