In the root directory:
- Install dependencies :
npm install
- Rename .env.sample file to .env and fill the missing values.
- To compile truffle project:
npx hardhat compile
- Testnet:
npx hardhat run --network testnet scripts/1_deploy_erc721NftContract.js
- Mainnet:
npx hardhat run --network mainnet scripts/1_deploy_erc721NftContract.js
- Testnet:
npx hardhat run --network testnet scripts/2_deploy_NftMarketplaceContract.js
- Mainnet:
npx hardhat run --network mainnet scripts/2_deploy_NftMarketplaceContract.js