Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
/ web3-poc Public archive

Proof of Concept (PoC) in regards to Web3 with smart contracts and a decentralized application (dApp)

Notifications You must be signed in to change notification settings

MGTheTrain/web3-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web3-poc

Table of Content

Summary

Proof of Concept (PoC) in regards to Web3 with smart contracts and a decentralized application (dApp)

NOTE In this proof of concept (PoC) we are only working with a local Hardhat node and not interacting with test or production networks.

References

Preconditions

  • Unix-like terminal (Ubuntu WSL on Windows OS)
  • Ensure you have Node.js and npm installed
  • Install npm dependencies by running:
cd hardhat
npm install
cd -
cd web3-sample-dapp
npm install
cd -
  • Add MetaMask extension for signed transactions. Therefore

    1. Setup custom RPC network similar to:

    Custom RPC network

    NOTE: The hardhat network id is per default 31337.

    1. Import private keys in hardhat local node console logs in MetaMask:
    Import private key I Import private key II
    1. Transfer ETH to Account 1 similar to:

    Transfer ETH

Getting Started

Open one terminal and start the local Ethereum node by executing:

make launch-local-eth-node

In a second terminal compile and deploy the Greeter smart contract with:

make compile-and-deploy-greeter-smart-contract

Finally in the second terminal start the React dapp by running:

make start-react-app

Results should resemble the following:

Confirmation Result

NOTE: Consider clearing activity data if you experience errors as described in this link:

Clearing activity data

About

Proof of Concept (PoC) in regards to Web3 with smart contracts and a decentralized application (dApp)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published