A marketplace for NFTs. The contracts are deployed to the Mumbai Testnet.
- Run a browser with a MetaMask-wallet
- You need a wallet to connect to a Web3 application (dApp)
- Set up MetaMask to use the Mumbai test network
- Use these details to set it up
$ npm i
To run the project locally:
Create a .env.local
-file and add the following keys:
NB: Don't use your primary MetaMask wallet when testing locally. Create a new test wallet
- PROJECTID=< INFURA PROJECT ID >_
- METAMASKPRIVATE_KEY=< METAMASK TEST-WALLET PRIVATE KEY >_
Run the project locally with the following commands:
$ npx hardhat node
$ npx scripts/deploy.js --network localhost
$ npm run dev
By running the node locally you'll be provided with multiple test-accounts with funds that can be used to test the dApp. Import the account to MetaMask and use the imported account to interact with the dApp.
Assuming you have a MetaMask wallet in your browser, you should be able to interact with the dApp.