Skip to content

DappLottery is a decentralized application built on web3 technologies that allows users to participate in a fair and transparent lottery system using NextJs, Solidity, and CometChat.

Notifications You must be signed in to change notification settings

Emirfath5/ReaperLottery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Build a Lottery DApp with NextJs, Solidity, and CometChat

Read the full tutorial here: >> How to Build a Lottery DApp with NextJs, Solidity, and CometChat

This example shows How to Build a Lottery DApp with NextJs, Solidity, and CometChat:

Creating a Lottery

Creating a Lottery

Purchasing Ticket

Purchasing Ticket

Live Chat

Live Chat

Technology

This demo uses:

  • Metamask
  • Hardhat
  • Infuira
  • NextJs
  • 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/dapplottery dappLottery
    cd dappLottery # Navigate to the new folder.
    yarn install # Installs all the dependencies.
  2. Head to CometChat and create a project.

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

     NEXT_PUBLIC_APP_ID=<APP_ID>
     NEXT_PUBLIC_AUTH_KEY=<AUTH_KEY>
     NEXT_PUBLIC_REGION=<REGION>
  4. Run the app using yarn dev

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

DappLottery is a decentralized application built on web3 technologies that allows users to participate in a fair and transparent lottery system using NextJs, Solidity, and CometChat.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.8%
  • Solidity 8.7%
  • CSS 2.6%
  • TypeScript 1.6%
  • Shell 0.3%