Prerequisites: Node (v16 LTS) plus Yarn and Git
install and start your π·β Hardhat chain:
cd <root_directory>
yarn install
yarn chain
in a second terminal window, start your π± frontend:
cd <root_directory>
yarn start
in a third terminal window, π° deploy your contract:
cd scaffold-eth
yarn deploy
Mint a few NFTs by editting
/packages/hardhat/scripts/mint.js
:
- change
toAddress
to set the address to mint the NFTs to - Edit the images, metadata
- Run
yarn mint
to mint
π Edit contract in packages/hardhat/contracts
π Edit frontend App.jsx
in packages/react-app/src
πΌ Edit deployment scripts in packages/hardhat/deploy
π± Open http://localhost:3000 to see the app
Documentation: docs.scaffoldeth.io
π You need an RPC key for testnets and production deployments, create an Alchemy account and replace the value of ALCHEMY_KEY = xxx
in packages/react-app/src/constants.js
with your new key.
π£ And a InfuraID
for production (curent one is from scaffoldeth)