-
If you don’t have Node.js installed, install it from here (Node.js version >= 14.6.0 required)
-
You need to have Metamask wallet to interact with this application: install it from here
-
Add Hardhat local network to your Metamask Wallet Add Network
-
Clone or download this repository
-
Navigate into the project directory
$ cd adopt-pet-hardhat
-
Install the requirements
$ npm install
-
Install the requirements in frontend folder
$ cd frontend $ npm install
-
run local hardhat server
$ npx hardhat node
-
in other terminal tab, deploy the contract localy
$ npx hardhat run scripts/deploy.js --network localhost
-
Run the frontend
$ npm run frontend
You should now be able to access the app at http://localhost:3000! For the full context behind this app, check out the full course tutorial.