ballon3 / web3-octo

Web 3 Octo is Decentralize blog app Built with Next Js, Hardhat, Solidity, Arweave, Bundlr, The Graph Protocol and All the css magic with Tailwind CSS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web 3 Octo 🐙

credit

Built with Next Js, Hardhat, Solidity, Arweave, Bundlr, The Graph Protocol and Tailwind CSS.

Functionalities

  • Publish Blog
  • Update Blog
  • Search Blogs
  • Related Blogs

Stack

Installation

Fork The Repo

Click on the Right Side of the Top Bar to After the Watch button.

Now It will be available in GitHub Account.

OR

Clone

  • Clone this repo with url
git clone https://github.com/Aakrut/web3-octo
Setup

Install npm dependencies using npm install

cd web3-octo && npm install

Set up environment Variables I already Provided .env.example file.

Create a .env file in the root directory.

Set up required environment variables.

URL="POLYGON_TESTNET_URI"
PRIVATE_KEY="METAMASK_PRIVATE_KEY"
NEXT_PUBLIC_RPC_URL="POLYGON_TESTNET_URI"
NEXT_PUBLIC_CONTRACT_ADDRESS="CONTRACT_ADDRESS"
NEXT_PUBLIC_GRAPHQL_URL="GRAPHQL_URL"

In the Root Directory First Compile Your Smart Contract with This Following Command.

npx hardhat compile

After Deploy Smart Contract to the Polygon Mumbai Testnet with this command.

npx hardhat run scripts/deploy.js --network mumbai

Copy Smart Contract Address and replace it in with your "CONTRACT_ADDRESS"

NEXT_PUBLIC_CONTRACT_ADDRESS="CONTRACT_ADDRESS"

For Setting up Graph Protocol - The Graph

now replace the graph url with

NEXT_PUBLIC_GRAPHQL_URL="GRAPHQL_URL"

Let's Run this command for dev

npm run dev
--or--
yarn dev

Screenshots

web3-octo

dashboard

search

upload

blog

responsive

responsive 2

responsive 3

About

Web 3 Octo is Decentralize blog app Built with Next Js, Hardhat, Solidity, Arweave, Bundlr, The Graph Protocol and All the css magic with Tailwind CSS.


Languages

Language:JavaScript 63.6%Language:TypeScript 25.0%Language:Solidity 6.6%Language:CSS 4.5%Language:Shell 0.3%