An Election Dapp for the Shardeum workshop conducted in New Delhi
- You need to have node.js, npm and yarn installed on your device.
- To download them, head over to https://nodejs.org
- After Installing, make sure you have node, type node -v in your terminal/command prompt.
- Type npm -v to check you have npm.
- To install yarn, type npm install yarn in your terminal/Command line.
- In your terminal/Command line, clone the repository using the git clone command
- cd into the ui folder and then type yarn install -> This will install all required packages to run the frontend.
- Open the .env file in the ui folder and add the deployed contract address done in the workshop
NEXT_PUBLIC_CONTRACT_ADDRESS=<YOUR_CONTRACT_ADDRESS_HERE>
. - In the ui directory, run the command, yarn dev. This will open the dapp on your localhost.
- Visit http://localhost:3000