OurTube is a YouTube Clone built on top of Polygon network and The Graph, that allows users to create, share and watch videos, without worrying about their privacy.
To get this application up and and running on your local machine follow these simple steps.
You need to have Node.js, NPM and hardhat installed on your computer, before running this project.
-
Clone the repo
git clone https://github.com/suhailkakar/Decentralized-YouTube
-
Install NPM packages
npm install
or
yarn install
-
Compile the smart contract
npx hardhat compile
-
Deploy the smart contract
-
Get your contract address and paste in on
getContract.js
-
Deploy subgraph in
indexer
directory by following steps inindexer/README.md
(optional, since it is already deployed in hosted service) -
Get subgraph query endpoint after deployment and update it in
src/index.js
const client = new ApolloClient({ uri: "YOUR_SUBGRAPH_LINK_HERE", // <-- Update this cache: new InMemoryCache(), });
-
Run the app
npm start
- Login with Wallet
- Upload functionality
- Search and filter functionality
- Channel page
- Subscribing to channel
- Commenting on videos
- Support for Audio files
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue. Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is an open source software licensed under the MIT License