A simple marketplace (like amazon) using web3!
- Visual Studio Code
- nvm / nodejs / npm / npx
- Javascript (React & Testing)
- Solidity (Writing Smart Contracts & Tests)
- Hardhat (Development Framework)
- Ethers.js (Blockchain Interaction)
- React.js (Frontend Framework)
- Metamask
- Chai (testing)
- IPFS
- QuickNode
- Install NodeJS
- Run hardhat node: npx hardhat node
- Deploy smart contract in local node: npx hardhat run ./scripts/deploy.js --network localhost`
- Update src/config.json with contract address from previous item
- Connect metamask to localhost:8545 (chain id: 31337)
- Register an account and Ethereum Test node in quicknode
- Set un .env file in root folder with this content:
- STAGING_QUICKNODE_KEY=(your quicknode url)
- PROD_QUICKNODE_KEY=(nothing)
- PRIVATE_KEY=(your metamask' acoount private key)
$ git clone repo_url
$ npm install
$ npx hardhat test
$ npx hardhat node
In a separate terminal execute:
$ npx hardhat run ./scripts/deploy.js --network localhost
$ npm run start