- Set up keys.json file and install dependencies
cd hardhat-react-dapp
cp keys.example.json keys.json
npm install
- Set up .env file in react frontend directory, and install dependencies
cp env.example .env
npm install
- Run the app npm start
- Start the local test node
cd hardhat-react-dapp
npx hardhat node
- Deploy the contract
npx hardhat run scripts/deploy.js --network localhost
- Update src/App.js with the value of your contract address
- Run the app
cd frontend
npm start