Decentralized twitter application using thirdweb
This app was made as part of a learning attempt to deploy a smart contract in thirdweb.
The smart contract is easily understandable as it's not too much complex and only uses existing methods to make a twitter Dapp.
- After installing all the requirements create a contract using thirdweb
- For creating a contract :
npx thirdweb create --contract
- For creating an app :
npx thirdweb create --app
- You can also use the command
npx thirdweb@latest create
In case you use this command every thirdweb command hereafter should havenpx thirdweb@latest
in it - After the successful creation of your contract you can deploy it by :
npx thirdweb deploy
in your terminal. thirdweb will also ask us the dev framework we want(houndry or hardhat) - This will take us to the thirdweb dashboard. Connect your metamask wallet and deploy your contract on your preferred chain
- After successful deploying we can see the read and write functions of our contract and interact with it from the explorer tab. We can also get the code snippets for javascript and many more from the code snippets tab. Much easier when compared to other dev frameworks
- To run the frontend make the changes accordingly. I chose a next.js project and chose typescript as the language
- Based on what you have installed(npm or yarn) you can run the Dapp and it will open in localhost
- To run using npm :
npm run dev
- To run using yarn :
yarn dev
- To deploy using yarn :
yarn deploy
The dapp currently has minimum functionality when considering the frontend. The smart contract works well and much more needs to be done on the frontend part