Prerequisites: Node (v16 LTS) plus Yarn and Git
clone/fork 🏗 dapp-scaffold:
git clone https://github.com/lowk3v/dapp-scaffold -b audit
install and start your 👷 Hardhat chain:
cd dapp-scaffold
yarn install
yarn chain
in a second terminal window, start your 📱 frontend:
cd dapp-scaffold
yarn start
in a third terminal window, 🛰 deploy your contract:
cd dapp-scaffold
yarn deploy
🔏 Edit your smart contract YourContract.sol
in contracts
🌍 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.
📣 Make sure you update the InfuraID
before you go to production. Huge thanks to Infura for our special account that fields 7m req/day!