A social media platform which works on the Ethereum Blockchain (Rinkeby test network). You get paid with ether whenever someone likes your post and tips it.
To run the app on your local machine, clone the repository by typing following commands in your terminal.
git clone https://github.com/HrushikeshAgrawal/blockchain-social-media.git
cd blockchain-social-media
npm install OR yarn install
Following accounts and links will be needed for you to run the app locally.
- Infura account and rinkeby test link from it. Get it from Infura Home Page
- Metamask account and its secret. Get it from Metamask chrome extension
After getting the renkeby link from infura and metamask secret, update the following lines in your code:
- /src/ethereum/web3.js line 11
const provider = new Web3.providers.HttpProvider("rinkeby link from infura");
- /src/ethereum/deploy.js line 5
"metamask secret",
- /src/ethereum/deploy.js line 6
"rinkeby link from infura"
Open the terminal and run npm run compile
and then npm run deploy
After successfull deployment, copy the address of deployed contract and do the final change:
- /src/ethereum/socialMedia.js line 6
"Address of deployed contract"
Run npm start
in your terminal and wait for the app to start.
If the app dosent open up on its own, browse to http://localhost:3000/ in your chrome browser.