/hello-world-ethereum-blockchain

Blockchain demo using only html and js without any frameworks

Primary LanguageJavaScript

Hello World DApp on Ethereum Blockchain

Online Demo using web3

Online Demo using ethers.js

about ethers.js

  1. git clone https://github.com/sauravtom/hello-world-ethereum-blockchain.git

  2. cd hello-world-ethereum-blockchain

  3. Setup metamask for your browser using this guide

  4. Get some test ethers from the roposten faucet

  5. Make sure you're Metamask account is connected to the Roposten network alt text

  6. Copy the content of Hello.sol to online Remix IDE. Follow this guide to learn more about Remix IDE

  7. Inside remix, compile and deploy the smart contract to Roposten Network

⋅⋅⋅Compile the smart contract Hello.sol from the Compile tab alt text

⋅⋅⋅Deploy the smart contract from the Run tab, after selecting the correct environment as shown alt text

  1. Copy the smart contract address to clipboard alt text

  2. Copy the smart contract abi json to clipboard alt text

  3. Paste the smart contract address and the abi json to the index.js file (Use https://jsonformatter.org/ to flatten the abi json object for code cleanliness)

  4. Save your changes and start a local web server to serve the index.html file

using python

python -m SimpleHTTPServer

or node

npm install http-server -g

http-server