Inspired by “Build a Raffle App With Solidity and NextJS: Code Along” Youtube video tutorial provided by Patrick Collins from Chainlink
- git
- You'll know you did it right if you can run
git --version
and you see a response likegit version x.x.x
- You'll know you did it right if you can run
- Nodejs
- You'll know you've installed nodejs right if you can run:
node --version
and get an ouput like:vx.x.x
- You'll know you've installed nodejs right if you can run:
- Yarn instead of
npm
- You'll know you've installed yarn right if you can run:
yarn --version
and get an output like:x.x.x
- You might need to install it with
npm
orcorepack
- You'll know you've installed yarn right if you can run:
git clone https://github.com/suparatsrifa/IBC2023_Final_Project
cd IBC2023_Final_Project
yarn
yarn dev
-
Deploy "RaffleVRF.sol" (e.g = Remix) with valid Chainlinnk Subscription ID input
-
Copy deployed contract address
-
Follow this instruction from Chainlink's doc to add contract consumer
-
Top up "LINK" token to contract (the token can be requested from this link)
-
Run this code (use different terminal calling from this repo)
yarn dev
- Go to UI http://localhost:3000
You can view project's presentation to follow the GUI tutorial
presentation materials
- RaffleVRF contract address: 0x9f1d26DE9aD49F261d2b6592e7397433F66732Cc
- RaffleVRF contract address link: https://sepolia.etherscan.io/address/0x9f1d26de9ad49f261d2b6592e7397433f66732cc
- Waralak Pariwatphan, MSc-2 Data Science at Skoltech
- Sudarut Kasemsuk, MSc-2 Data Science at Skoltech
- Suparat Srifa, MSc-2 Data Science at Skoltech