A Lottery DApp with NextJs, Solidity
To run the demo follow these steps:
-
Clone the project with the code below.
# Make sure you have the above prerequisites installed already! git clone https://github.com/minjie05/dapp-lottery.git dapp-lottery cd dapp-lottery # Navigate to the new folder. yarn install # Installs all the dependencies.
-
Start a node on the local network.
yarn hardhat node
- Run the app using
yarn dev
npx hardhat compile
npx hardhat run scripts/deploy.js
yarn dev
- open
http://localhost:3000/