DWITTER: Decentralized Twitter
Check out the deployed version of this app at https://dwtr.wajeshubham.in
Transactions on Ethereum are slow. Therefore, whenever you sign up or post/like dweets, it might take some time to complete the transaction. So please be patient.
Usage
All the data is stored on the Ethereum blockchain, which means that signing up and posting dweets costs a small amount of ether (on Ropsten network). This is probably not something that people would be willing to pay for in the near future, but serves as a PoC (Proof of concept).
Add ether to your wallet
You can add ether in your wallet fro free. To add ether to your wallet on the Ropsten network, you can use the following link:
DWITTER FRONTEND
- Language: TypeScript
- Styling: TailwindCSS
- Framework: NextJs
- File storage: IPFS
- Web3 tools: ethers, Ethereum
Setup
First, make sure that you have Node installed on your computer.
install all the required packages:
npm install
start the server:
npm run dev
DWITTER SMART CONTRACT
- Language: Solidity (v^0.8.0)
- Dev environment: Hardhat
- Deployed on: Alchemy (Ropsten)
Setup
Create .env
file with the following content in root folder:
PRIVATE_KEY=<PRIVATE_KEY_OF_ETHEREUM_ACCOUNT>
Compilation
npm start
Test
npm test
Start local node
npm run node
Deploy locally
npm run deploy-dev
Deploy in production
npm run deploy-prod