Code Monkey home page Code Monkey logo

web3-twitter-clone's Introduction

Web 3 Twitter Clone

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

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-twitter-clone
Setup

Install npm dependencies using npm install

$ npm install && cd web3-twitter-clone && 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_PROJECT_ID="PROJECT_ID"
NEXT_PUBLIC_PROJECT_SECRET="PROJECT_SECRET"
NEXT_PUBLIC_CONTRACT_ADDRESS="CONTRACT_ADDRESS"
NEXT_PUBLIC_GRAPHQL_URI="GRAPHQL_URI"

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

Web

twitter-home

twitter-main

full-page-shot

Responsive

Twitter Responsive

web3-twitter-clone's People

Contributors

reaperdragon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.