Vidhub is a decentralized social media, video-sharing app that allows users to create, watch, like, comment, buy and share videos shot on mobile devices or webcams. The video will be minted as NFT and posted, and can be bought by another user. Users are also rewarded with 0.025 of our VID token each time they post a video.
- Solidity (Writing Smart Contract)
- Javascript (NextJs & Unit Testing)
- Ethers JS (Blockchain Interaction)
- Hardhat (Smart Contract Development Framework)
- Livepeer (Video storage && player)
- Web3.storage - IPFS (NFT File Storage)
- Polygon Mumbai (Blockchain network)
- ERC-20 standard
- ERC-721 standard
- Install NodeJS, should work with any node version below 18.12.1
- Install Hardhat in your terminal. You can check to see if you have hardhat by running
npx hardhat
. To install hardhat, runnpm install --save-dev hardhat
.
📄 Clone or fork Vidhub:
https://github.com/paschal533/Vidhub.git
💿 Install all dependencies:
$ cd vidhub
$ npm install
Rename the file env.local.example
to env.local
Add all the required enviroment varibles in the file
NEXT_PUBLIC_SANITY_TOKEN =
NEXT_PUBLIC_GOOGLE_API_TOKEN=
NEXT_PUBLIC_BASE_URL= http://localhost:3000
NEXT_PUBLIC_CONTRACT_ADDRESS= 0x7ec205F8573E16678fE130A132a0956eEc79E9B2
NEXT_PUBLIC_API_KEY = //Your Livepeer API Key
NEXT_PUBLIC_INFURA_IPFS_PROJECT_ID=
NEXT_PUBLIC_INFURA_IPFS_PROJECT_SECRET=
npm run dev
- Note :- This app was deploy to Polygon Mumbai testnet, so you need to connect your Metamask wallet to Polygon Mumbai testnet before you can Interact with the app.
Rename the file env.example
to env
Add all the required enviroment varibles in the file
API_KEY = //PolygonScan API_KEY
PrivateKey = // Metamask PrivateKey
ProjectID = // Infura ProjectID
npx hardhat test
npx hardhat compile
npx hardhat run --network mumbai scripts/deploy.js
0x7ec205F8573E16678fE130A132a0956eEc79E9B2
0x3dDac85FA891cA51BF339f1df791AA002ec08A8A
https://mumbai.polygonscan.com/address/0x7ec205F8573E16678fE130A132a0956eEc79E9B2