Twitter Decentralized App With Solidity and Vue
Decentralized Twitter Clone
This project is a decentralized application (dApp) that mimics the basic functionality of Twitter. Unlike traditional social media platforms, this application is built on the blockchain, which means that to create a post, you will need to have a blockchain wallet and pay fees for the post to be saved on the blockchain.
Features
- Create and post tweets on the blockchain
- View tweets from all users
Technologies Used
- Solidity: For writing smart contracts
- Hardhat: For compiling, testing, and deploying our smart contracts
- Vue3: For building the frontend of the application
- Metamask: For user authentication and interaction with the Ethereum blockchain
Prerequisites
- An Alchemy account and API key
- A Metamask account and API key
Getting Started
- Clone the repository
- Move to
x-smart-contract
directory - Install dependencies with
npm install
- Copy
.env.example
to.env
and update the data with your Alchemy and Metamask API keys - Compile the smart contract with
npx hardhat compile
- Start the local Hardhat network with
npx hardhat node
- Deploy the contract to the staging network with
npx hardhat run scripts/deploy.js --network staging
- Move to
x-front-end
directory - Start the Vue app with
npm run dev
Disclaimer
This project is for educational purposes only. It is not a fully decentralized Twitter platform. Please use responsibly.