- Upload Posts
- Search Post
- Send Comments
- Profile Posts
- Language : TypeScript
- Frontend : Next Js
- Smart Contract Lang : Solidity
- Indexing : The Graph
- Dev Environment for ETH Software: Hardhat
- Testing: Chaijs
- File Storage : Arweave
- Scaling Permenant Storage - Bundlr
- Network : Polygon Mumbai
- Style : Tailwind CSS
- State management : GraphQL Apollo Client
- Toast: React Toastify
- Fonts - Google Fonts
- Icons : Iconsax React
- Design : Figma
Click on the Right Side of the Top Bar to After the Watch button.
Now It will be available in GitHub Account.
- Clone this repo with url
git clone https://github.com/Aakrut/decentragramInstall npm dependencies using npm install
cd decentragram && npm installCreate a .env file in the root directory.
Set up required environment variables.
URL="POLYGON_TESTNET_URI"
PRIVATE_KEY="METAMASK_PRIVATE_KEY"
In the Root Directory First Compile Your Smart Contract with This Following Command.
npx hardhat compileAfter Deploy Smart Contract to the Polygon Mumbai Testnet with this command.
npx hardhat run scripts/deploy.js --network mumbaiAfter move into client
cd client && npm installCreate a .env file in the root directory.
Set up required environment variables.
NEXT_PUBLIC_RPC_URL="POLYGON_TESTNET_URI"
NEXT_PUBLIC_CONTRACT_ADDRESS="CONTRACT_ADDRESS"
NEXT_PUBLIC_GRAPHQL_URI="GRAPHQL_URL"
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_URI="GRAPHQL_URL"
Let's Run this command for dev
# use npm if you prefer
$ npm run dev
# or yarn
$ yarn dev









