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)