Skip to content

Latest commit

 

History

History
87 lines (55 loc) · 1.84 KB

README.md

File metadata and controls

87 lines (55 loc) · 1.84 KB

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:

https://faucet.egorfine.com/

DWITTER FRONTEND

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

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