https://github.com/sanyampunia/lottery-dapp
🎟 A simple decentralized lottery application built with Next.js and thirdweb. Styled using TailwindCSS
https://github.com/sanyampunia/lottery-dapp
nextjs spheron tailwindcss thirdweb thirdweb-dev-sdk
Last synced: about 2 months ago
JSON representation
🎟 A simple decentralized lottery application built with Next.js and thirdweb. Styled using TailwindCSS
- Host: GitHub
- URL: https://github.com/sanyampunia/lottery-dapp
- Owner: SanyamPunia
- Created: 2022-09-12T17:21:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-13T07:49:59.000Z (over 3 years ago)
- Last Synced: 2025-10-03T23:02:20.701Z (8 months ago)
- Topics: nextjs, spheron, tailwindcss, thirdweb, thirdweb-dev-sdk
- Language: TypeScript
- Homepage: https://lottery-dapp-l92moj.spheron.app/
- Size: 142 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 🎫 The Lottery DAPP
This **Lottery Dapp** is an implementation of basic lottery application where each individual can buy certain number of tickets, while the total amount of tickets purchased accumulate as the total prize pool for that time period
Hosted on Spheron - [Lottery DAPP](http://lottery-dapp-l92moj.spheron.app/)
---
### 📹 Preview

----
### 🛠 Tech Stack
* [Next.js](https://nextjs.org/) - Frontend Framework
* [thirdweb](https://thirdweb.com/) - Web3 Platform (`@thirdweb/react` & `@thirdweb/sdk`)
* [Tailwind CSS](https://tailwindcss.com/) - CSS Utility Framework
### 📐 Local Setup and Usage
* Make sure you have [*Metamask*](https://metamask.io/) installed as the extension in your browser
* Clone the repository
* Install the required dependencies by using the following command in the project directory using your terminal
```bash
$ pnpm install
```
* Create `.env.local` file in your project directory and add the following variable(s)
```
NEXT_PUBLIC_LOTTERY_CONTRACT_ADDRESS=
```
The above contract address is of the Smart Contract version (*`contract/Lottery.sol`*) that is currently deployed to `thirdweb`
* Spin up the development server
```bash
$ npm run dev
```