ChaiDapp is a decentralized application (DApp) built on the Ethereum blockchain. It allows users to interact with smart contracts to buy chai and view memos from other users. The project is developed using React for the front-end and Solidity for the smart contracts.
- Buy Chai: Users can purchase chai using Ethereum.
- View Memos: Users can see memos left by others who bought chai.
- Blockchain Integration: Deployed on Ethereum's Sepolia testnet.
contracts/
: Contains the Solidity smart contracts.scripts/
: Deployment scripts using Hardhat.client/src/
: Front-end source code built with React.
- Node.js and npm
- Hardhat
- MetaMask (or any Web3 wallet)
-
Clone the repository:
git clone https://github.com/manishojha3/chaidapp.git cd chaidapp
-
Install dependencies:
npm install
-
Compile the smart contract:
npx hardhat compile
-
Deploy the smart contract:
npx hardhat run scripts/deploy.js --network sepolia
-
Start the front-end:
npm start
Ensure the smart contract is deployed on the Ethereum Sepolia testnet or mainnet. Use Alchemy or Infura to connect the front-end to the deployed contract.
Create a .env
file in the root directory to store sensitive information like the Alchemy API URL and contract address:
url: "YOUR_ALCHEMY_API_URL",
accounts: ["Your wallet private key"]