Coder Social home page Coder Social logo

karthickravi138 / dappvote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daltonic/dappvote

0.0 0.0 0.0 6.78 MB

This is a Blockchain use-case focusing in the building of a Decentralized Voting Dapp with Next.js, TypeScript, Tailwind CSS, and CometChat

Home Page: https://dapp-vote-three.vercel.app

License: MIT License

Shell 0.31% JavaScript 9.83% TypeScript 80.65% CSS 2.56% Solidity 6.65%

dappvote's Introduction

Build a Decentralized Voting Dapp with Next.js, TypeScript, Tailwind CSS, and CometChat

Read the full tutorial here: **>> Build a Decentralized Voting Dapp with Next.js, TypeScript, Tailwind CSS, and CometChat **

This example shows Build a Decentralized Voting Dapp with Next.js, TypeScript, Tailwind CSS, and CometChat:

Poll Lisiting

Poll Listing

Poll Listing

Poll Details with Candidates

Poll Group Chat

Poll Group Chat

Technology

This demo uses:

  • Metamask
  • Hardhat
  • Infuria
  • 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/dappVote PROJECT_NAME
    cd PROJECT_NAME # Navigate to the new folder.
    yarn install # Installs all the dependencies.
  2. Create a CometChat project, copy and paste your key in the spaces below.

  3. Update the .env file with the following details.

     NEXT_PUBLIC_COMET_CHAT_APP_ID=<CometChat_APP_ID>
     NEXT_PUBLIC_COMET_CHAT_AUTH_KEY=<Comet_Chat_AUTH_KEY>
     NEXT_PUBLIC_COMET_CHAT_REGION=<CometChat_REGION>
     NEXT_APP_RPC_URL=<http://127.0.0.1:8545>
  4. Run the app using the following commands.

    yarn install
    yarn hardhat node
    yarn hardhat run scripts/deploy.js
  5. On another terminal, run yarn start to launch the project on the browser.

  6. Add some hardhat accounts, connect your wallet and interact with the app.

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 โœŒ๏ธ Access the Teaching Guide Here.

Useful links

dappvote's People

Contributors

daltonic avatar dapplex 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.