ETH-ATM is a simple decentralized application (Dapp) that allows users to deposit and withdraw funds using Ethereum. It demonstrates the functionality of depositing and withdrawing Ether (ETH) from a smart contract.
To run the ETH-ATM Dapp locally on your computer, follow these steps:
- Node.js and npm (Node Package Manager) should be installed on your machine.
- Git should be installed to clone the GitHub repository.
- Clone the GitHub repository to your local machine:
- git clone repo-Url
- Change into the project directory: cd ETH-ATM
- Install the project dependencies
- npm install
-
Start a local Ethereum network using Hardhat using the command: npx hardhat node
-
In a separate terminal, deploy the smart contract to the local network using the command: npx hardhat run --network localhost scripts/deploy.js
-
Finally, start the Dapp on your local development server using the command: npm run dev
-
Access the Dapp in your web browser at http://localhost:3000/ to interact with the ETH-ATM.