Skip to content

Jerga99/adopt-pet-hardhat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adopt Pet App - React JS, Solidity, Hardhat, Ethereum and Polygon.

Setup

  1. If you don’t have Node.js installed, install it from here (Node.js version >= 14.6.0 required)

  2. You need to have Metamask wallet to interact with this application: install it from here

  3. Add Hardhat local network to your Metamask Wallet Add Network

  4. Clone or download this repository

  5. Navigate into the project directory

    $ cd adopt-pet-hardhat
  6. Install the requirements

    $ npm install
  7. Install the requirements in frontend folder

    $ cd frontend
    $ npm install
  8. run local hardhat server

    $ npx hardhat node
  9. in other terminal tab, deploy the contract localy

    $ npx hardhat run scripts/deploy.js --network localhost
  10. 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.