Daltonic / a2e

A decentralized and innovative platform that motivates users to share their knowledge and in turn rewarded ethers for correct answers. [Demo Sepolia Testnet]

Home Page:https://answer-to-earn.web.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Build an Answer-to-Earn Platform with React, Solidity, and CometChat

Read the full tutorial here: >> How to Build an Answer-to-Earn Platform with React, Solidity, and CometChat

This example shows How to Build an Answer-to-Earn Platform with React, Solidity, and CometChat:

Paying out Preferred Answer

Answer to Earn Platform: Payout

Live Chat Enabled

Answer to Earn Platform: Live Chat

Technology

This demo uses:

  • Metamask
  • Hardhat
  • Alchamy
  • ReactJs
  • Tailwind CSS
  • Solidity
  • EthersJs
  • Faucet

Running the demo

To run the demo follow these steps:

  1. Clone the project with the code below.

    # Make sure you have the above prerequisites installed already!
    git clone https://github.com/Daltonic/tailwind_ethers_starter_kit a2e
    cd a2e # Navigate to the new folder.
    yarn install # Installs all the dependencies.
  2. Head to CometChat and create a project.

  3. Create a .env file to include the following details.

    REACT_APP_COMETCHAT_APP_ID=<APP_ID>
    REACT_APP_COMETCHAT_AUTH_KEY=<AUTH_KEY>
    REACT_APP_COMETCHAT_REGION=<REGION>
  4. Run the app using yarn start

If your confuse about the installation, check out this TUTORIAL to see how you should run it.

Questions about running the demo? Open an issue. We're here to help ✌️

Useful links

About

A decentralized and innovative platform that motivates users to share their knowledge and in turn rewarded ethers for correct answers. [Demo Sepolia Testnet]

https://answer-to-earn.web.app/


Languages

Language:JavaScript 84.5%Language:Solidity 10.5%Language:HTML 4.0%Language:CSS 0.8%Language:Shell 0.3%