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