Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.03 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.03 KB

A NFT white list dapp using merkle tree

To run this app:

  1. Clone this repository
git clone [email protected]:rizahedayati/merkle_tree.git
  1. Install the dependencies in all directory
cd [directory_name]
npm install
  1. go to merkle_contract directory and create .env file like .envExample
cd merkle_contract
  1. Deploy to localhost or goerli
npx hardhat node //just for local network
npx hardhat run scripts/deploy.js --network localhost
  1. go to merkle_contract directory
cd merkle_contract
  1. go to merkle_server directory and create .env file like .envExample
cd merkle_contract
  1. start mongo db service in your system
service mongod start
  1. copy contract address from merkle_contract/config.js and paste in merkle_client/config.js

  2. copy artifacs directory from merkle_contract and paste in merkle_client

  3. go to merkle_client directory

cd merkle_client
  1. start the client app
npm run dev
  1. open your browser in http://localhost:3000