Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 885 Bytes

File metadata and controls

50 lines (35 loc) · 885 Bytes

中文 / English

Express combined with hardhat

  • Configure private key Enter private key in .env, formatted with "PRIVATE_KEY=xxxx"

  • Install dependencies

yarn
  • Create a simple project selected. Add contract names SimpleToken.sol to ./contracts and compile the contract to run testing.
npx hardhat compile
npx hardhat test
  • Deploy
npx hardhat run scripts/deploy.js --network goerli
  • Find your private key and address of token in your local node's account, imported to Metamask

  • Backend

cd backend
yarn
node app.js
  • Startup react
cd frontend
yarn
yarn start

References