This project is a Dapp which allows users to donate ethers to a contract address.
- Alchemy Account
- Alchemy Goerli API Key and URL
- Nodejs
- NPM
- Ethereum supported account's Private Key
-
Copy .env-example file to .env
cp .env-example .env
-
Now You will need to replace your alchemy url, api key and private key in .env file
-
Now compile and deploy the contract using hardhat
npx hardhat compile
npx hardhat run scripts/deploy.js --network goerli
- Copy the contract address from the console. We have to paste it in our frontend folder to interact with it
- Get into the directory
cd frontend
- Now paste the contract address under BMAC_CONTRACT_ADDRESS in src/constants/buyMeACoffee.js file
3 Now create the build and start the server
npm build
npm start
- Go to browser and type the url http://localhost:3000