Loading repository data…
Loading repository data…
Dona-anna-renji / repository
Welcome Developers DApp is a responsive blockchain-based web application built with HTML, JavaScript, and Ethers.js, integrated with MetaMask for wallet connectivity. It allows users to interact with an Ethereum smart contract by viewing and updating messages stored on the blockchain in a secure and decentralized manner.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A minimal decentralized application (DApp) that interacts with an Ethereum smart contract using MetaMask and Ethers.js.
This frontend interacts with the following Solidity contract:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
contract WelcomeDevelopers {
string smessage = "Welcome Developers to Ethereum !";
function getMessage() public view returns (string memory) {
return smessage;
}
function setMessage(string memory lmessage) public {
smessage = lmessage;
}
function getBalance() public view returns (uint) {
return address(this).balance;
}
}
git clone https://github.com/nikhilvc1990/MessageDApp.git
cd MessageDApp
npm install
npx hardhat compile
First, start a local Hardhat network:
npx hardhat node
In another terminal window, deploy the contract:
npx hardhat run scripts/deploy.js --network localhost
Or
npx hardhat ignition deploy ./ignition/modules/WelcomeDevelopers.js --network localhost
After deployment, copy the deployed contract address. You'll use it in the UI (index.html).
Open a new terminal in the root folder (MessageDApp)
Update the contractAddress variable in your index.html file:
const contractAddress = "YOUR_DEPLOYED_CONTRACT_ADDRESS";
From the root folder:
npx serve .
Go to https://vercel.com
Import the GitHub repo
Click Deploy
Your frontend will be live on a Vercel URL.