Skip to content

jason71708/dapp-smartcontract-tutorial

Repository files navigation

Dapp & smart contract development tutorials

Simple Smart contract

mkdir smart-contract
cd smart-contract

Install

npx hardhat

Build

npx hardhat compile

Local blockchain

npx hardhat node

Deploy Contract to local blockchain

npx hardhat run scripts/sample-script.js --network localhost

Metamask setup local network

Name: localhost:8545

RPC URL: http://localhost:8545

ChainID: 31337

Currency Symbol: ETH

Take some ETH from local blockchain

cp -R ../teaching-material/tasks .
cp ../teaching-material/hardhat.config.js .
npx hardhat --network localhost faucet <your address>

Dapp

Finish index-START.html file.

ERC721 Contract development

npm install @openzeppelin/contracts