Skip to content

tanuj-22/Peer-Pix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peer Pix

https://peerpix.vercel.app/

Peer Pix is a decentralized Instagram clone built on Ethereum. It is a simple dApp that allows users to upload images to the blockchain and view them on the front-end.

The dApp is built using the Truffle framework and React.js. The front-end is built using React.js and the back-end is built using Solidity.

The dApp is deployed on the Goerli testnet.

Features

Users can upload images to the blockchain

Users can view images uploaded by other users

Users can tip other users for their images

Users can view the total number of tips an image has received

Getting Started

Create a .env file in the root directory and add the following:

GOERLI_URL = YOUR_GOERLI_URL
ALCHEMY_API_KEY = YOUR_ALCHEMY_API_KEY
MNEMONIC = Wallet mnemonic
REACT_APP_PINATA_API_KEY = YOUR_PINATA_API_KEY
REACT_APP_PINATA_API_SECRET = YOUR_PINATA_API_SECRET
REACT_APP_PINATA_API_JWT = YOUR_PINATA_API_JWT

Install dependencies

npm install

Start the development blockchain

truffle develop

Compile and migrate the smart contracts

truffle(develop)> compile

truffle(develop)> migrate

In a separate terminal window, start the React app

npm run start

Deployed Contracts

The Peer Pix dApp is deployed on the Goerli testnet. The contract addresses are as follows:

Network: goerli (id: 5)

Peer Pix : 0xC70cdaF1945dd547407A5961118679be5A41f3D5

Migrations : 0xa784554Fc1B3875AF8CB6bbbeAb0a4503bEF5aCa