This is a RainbowKit + wagmi + Next.js project bootstrapped with create-rainbowkit
.
An Election dApp where the user can vote for their candidate leveraging the power of Blockchain technology. The smart contract is deployed to the Polygon Mumbai testnet using the Remix IDE, and the app uses Rainbowkit, Wagmi, TypeScript, and Tailwind CSS. The app also uses Alchemy for the API key for Polygon Mumbai.
-
Increased Transparency: Decentralized voting systems can increase transparency, as all voters can view the results in real-time.
-
Immutable Records: Decentralized voting systems are based on blockchain technology, which means that the records are immutable and cannot be altered.
-
Increased Security: Decentralized voting systems are highly secure, as they use cryptographic algorithms to protect the data.
-
Reduced Costs: Decentralized voting systems can reduce the costs associated with traditional voting systems, as they eliminate the need for physical ballot boxes and personnel to count the votes.
-
Increased Accessibility: Decentralized voting systems can increase accessibility for voters, as they can be accessed from anywhere with an internet connection.
- React
- TypeScript
- Tailwind CSS
- Solidity
- Remix IDE
- Clone the repository.
- Run
npm install
to install the dependencies. - Create a
.env
file with the following variables:REACT_APP_ALCHEMY_KEY
: Your Alchemy API key for Polygon Mumbai.REACT_APP_CONTRACT_ADDRESS
: The address of the deployed smart contract.REACT_APP_CONTRACT_ABI
: The ABI of the deployed smart contract.
- Run
npm start
to start the app.
- Connect your wallet using the Connect button.
- Add candidates using the "Add Candidate" button.
- Vote for a candidate using the "Vote" button.
- View the results on the home screen.
##Screenshots
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out the Next.js deployment documentation for more details.