Comment on page
DEPLOYING DECENTRALIZED TWITTER
This is a guide for deploying a decentralized Twitter dapp on the gather network testnet. You can create an account as NFT, upload posts, and tip posts.
- 1.MetaMask or any web3 wallet configured with Gather testnet.
- 2.Testnet GTHs.
- 3.Install NodeJS, should work with any node version below 16.5.0.
- 4.Install Hardhat.
Clone/Download the repository on your local machine.
git clone https://github.com/GatherNetwork/DTwitter.git
.envfile in the root directory. Copy the content from existing
Update your Gather network account private key in the
Migrate Smart Contracts to Gather testnet. At this step, we are deploying our smart contract on the Gather testnet. You can also deploy your contract on other Ethereum-based test networks, but for that network, configurations need to be changed.
npx hardhat run scripts/deploy.js --network gather_testnet
As the smart contracts are deployed on the Gather testnet, now we can start our dapp frontend and interact with the deployed smart contract.
npm run start
Now you can connect your MetaMask wallet account with dapp. Click on the Connect Wallet button on the top right. Once you connect your MetaMask account you can see your account address in place of Connect Wallet button and then start using the DTwitter. You can create an account as an NFT in the profile section to create posts.
Your dapp is successfully launched. You can now create an account as an NFT. You can create posts, and see posts by other people on the network. You can also tip a post with 0.00001 GTH.