/ETH-dApp

Primary LanguageJavaScriptMIT LicenseMIT


ETH Logo


-----------------------------------------------------


• Overview

This project is made following this instructions made by engineer cmmunity UNCHAIN. This one is one of the best one to learn blockchain development.

This is dapp that you can send message and wave to the board. Also, if you're lucky, you can receive token(testnet token) from this contract.

• Links

Deployed here

Frontend

• Launch

  1. run yarn install in terminal.

  2. make .env file under packages/contract and input your Private Key and Alchemy HTTP Key like below.

PRIVATE_KEY = <YOUR_PRIVATE_KEY>
STAGING_ALCHEMY_KEY = <ALCHEMY_HTTP_KEY>
  1. run yarn contract deploy in terminal. The result would be like below.
Deploying contracts with account:  0x04CD057E4bAD766361348F26E847B546cBBc7946
Account balance:  272899657284590565
WavePortal address:  0x40aB7863b1b4987Df1e514cD99791d523AA128A4
  1. change the line 80 in packages/client/src/App.js.
const contractAddress = "YOUR_CONTRACT_ADDRESS";
  1. replace the json file in packages/client/src/utils/Web3Mint.json with the content of the json file in packages/contract/artifacts/contracts/Web3Mint.sol/Web3Mint.json.

  2. Finally, run yarn client start in terminal and see how it works!