Languages
This project is created for learning. It represents a simple web-based messenger built with Vue.js and Web3. It allows users to authenticate via MetaMask and send messages from their own addresses. The messages are stored on the Ethereum blockchain using a Solidity smart contract.
P.S. This is my first experience in Vue and solidity, I didn't even now how to change the title
npm install
npm run dev
Ensure that you have the MetaMask extension installed in your browser. Add your MetaMask account by importing it from Hardhat. To do this, follow these steps:
- Run
npx hardhat node
- Copy one of the generated accounts' addresses from the console output.
- Open MetaMask, click on the account icon, and select "Import Account".
- Paste the address copied from the console into the import field.
- In MetaMask, click on the network dropdown and select "Custom RPC".
- Enter the testnet's RPC URL and chain ID. (Ussually 31337)
- Click "Save" to connect to the testnet.
npx hardhat run scripts/deploy.js
Once the contract is deployed and MetaMask is connected to the appropriate network, you can interact with the chat application. Users can authenticate using MetaMask and send messages from their own addresses.
npm run build
Lint with ESLint
npm run lint