install dependencies
yarn
Next, run a local Ethereum node:
npx hardhat nodeDeploy the smart contract to the local node:
npx hardhat run scripts/deploy.js --network localhostRunning the above command should print out the addresses where the contract was deployed. Update config.js with those values:
export const nftaddress = "nft-contract-address"
export const nftmarketaddress = "marketplace-address"Next, run the development server:
npm run dev
# or
yarn dev