Skip to content

souviknsl07/crypto-lottery

Repository files navigation

Crypto Draw

MIT License React Next Tailwind

This is a fully responsive crypto lottery web app developed using Nextjs, Tailwind CSS, third-web, ethers etc.

Watch it Live

cryptodraw.vercel.app

Screenshots

Login with metamask

Screenshot (59)

Buying Tickets

Screenshot (61)

Picking up winner

Screenshot (62)

Winner Winner Chicken Dinner

Screenshot (63)

Features

  • Admin Control
  • Login using crypto wallet
  • Blockchain environment
  • Crypto Transactions

License

MIT

Contributing

All kinds of contributions are welcomed 🤝

Prerequisites

  • Should have a crypto wallet like metamask.

  • Have knowledge about Reactjs and Nextjs.

  • Know how Tailwind CSS works.

  • Basic knowledge about blockchain and smart contracts.

  • Know how to integrate the smart-contracts to the front-end.

    Any one of them would be sufficient.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

NEXT_PUBLIC_LOTTERY_CONTRACT_ADDRESS - which you get after hosting your smart-contract.

Run on your Local Machine

Clone the project

  git clone https://github.com/[your-username]/crypto-lottery.git

Go to the project directory

  cd crypto-lottery

Install dependencies

npm

  npm install

yarn

  yarn install

Start the server

npm

  npm run start

yarn

  yarn run dev

It will start the development server at localhost:3000

Running Test

  1. Install and configure cypress
  2. Run
  yarn cypress

or

  npm run cypress

I will be very much grateful, if you give this repository a ⭐