Skip to content

Commit

Permalink
updated gitpod info
Browse files Browse the repository at this point in the history
  • Loading branch information
dabit3 committed Jul 15, 2021
1 parent 0749e07 commit 67a0ed5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ tasks:
gp await-port 8545
npx hardhat run scripts/deploy.js --network localhost
npm run dev
openMode: tab-after
openMode: tab-after
ports:
- port: 3000-8545
visibility: public
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@

### Running this project

#### Gitpod

To deploy this project to Gitpod, follow these steps:

1. Click [this](https://gitpod.io/#github.com/dabit3/polygon-ethereum-nextjs-marketplace) link to deploy

2. In __pages/index.js__, pass in the RPC address given to you by GitPod to the call to `JsonRpcProvider` function:

```javascript
/* update this: */
const provider = new ethers.providers.JsonRpcProvider()

/* to this: */
const provider = new ethers.providers.JsonRpcProvider("https://8545-youendpoint.gitpod.io/")
```

3. Import the RPC address given to you by GitPod into your MetaMask wallet

![MetaMask RPC Import](wallet.png)

#### Local setup

To run this project locally, follow these steps.

1. Clone the project locally, change into the directory, and install the dependencies:
Expand Down Expand Up @@ -33,9 +55,7 @@ npx hardhat node
npx hardhat run scripts/deploy.js --network localhost
```

4. Rename __config.example.js__ to __config.js__ and copy the `nftmarketaddress` and `nftaddress` values to it.

5. Start the app
4. Start the app

```
npm run dev
Expand Down
Binary file added wallet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 67a0ed5

Please sign in to comment.