Twitter on the Ethereum Blockchain Proof of Concept
Set up Truffle
npm install -g truffle
Install Ganache-CLI
npm install -g ganache-cli
Then run ganache-cli --account_keys_path keys.json
and it runs the server and stores keys in local keys.json hash
Copy .env.sample
over to .env
and enter both your ALICE_ADDRESS and DONALD_ADDRESS.
Run truffle deploy --network development
in the /tests directory order to get contract deployed.
Run npm install
in order to hd wallet and other dependencies.
Run truffle console --network development
to load up the console
Run Twitter.deployed().then(function(instance){return instance });
to verify your contract is deployed.
- Download your wallet from Metamask
- Create 2 Metamask accounts, one for ALICE_ADDRESS and another for DONALD_ADDRESS
- Select a drop down to show/hide test networks
- Get some Rinkeby test ether (may take more than one provider or attempt)
- Signup for Infura to create a new project and Rinkeby API key
Copy .env.sample
over to .env
and enter both your API_URL, MNEMONIC, ALICE_ADDRESS and DONALD_ADDRESS.
Run npm install
in order to hd wallet and other dependencies.
Run truffle deploy --network rinkeby
in the /tests directory order to get contract deployed.
Run truffle console --network rinkeby
to load up the console
Run Twitter.deployed().then(function(instance){return instance });
to verify your contract is deployed.
Go into /app directory and run npm install
and then yarn start
**If running locally be sure to import private keys from ganache into Metamask
- UI is breaking and still needs some work.