Skip to content

Commit

Permalink
Update README documentation for environment variable setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Cook committed Sep 7, 2021
1 parent ef3b487 commit 1b6bb7b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,45 @@ In the meantime, you might find this helpful too:
https://hackmd.io/@levicook/HJcDneEWF


## Environment Variables

To run the project, first create a `.env` file at the root directory and define the following variables:

```
REACT_APP_CANDY_MACHINE_CONFIG="redacted"
```

This is a Solana account address. You can get the value for this from the `.cache/temp` file. This file is created when you run the `metaplex upload` command in terminal.

```
REACT_APP_CANDY_MACHINE_ID="redacted"
```

Same as above; this is a Solana account address. You can get the value for this from the `./cache/temp` file. This file is created when you run the `metaplex upload` command in terminal.

```
REACT_APP_CANDY_START_DATE=1630422000000
```

This is a unix time stamp that configures when your mint will be open.

```
REACT_APP_SOLANA_NETWORK=devnet
```

This identifies the Solana network you want to connect to. Options are `devnet`, `testnet`, and `mainnet`.

```
REACT_APP_SOLANA_RPC_HOST=https://explorer-api.devnet.solana.com
```

This identifies the RPC server your web app will access the Solana network through.

```
REACT_APP_TREASURY_ADDRESS="redacted"
```

This the Solana address that receives the funds gathered during the minting process. More docs coming as we can test this.



Expand Down

0 comments on commit 1b6bb7b

Please sign in to comment.