Skip to content

danieljcss/avalanche-evoting

Repository files navigation

Voting DApp Avalanche

In this project we create a simple voting DApp and we deploy it on the Avalanche Fuji testnetwork.

Installation

To install the required dependencies run

npm install

We use Hardhat to deploy and test. Since it is not a dependency on the project you can install it by using

npm install -D hardhat

Deployment

To deploy the smart contracts to the Fuji network, first create a .env file with the mnemonic key of your Avalanche account

PRIVATE_KEY="<your private key here>"

Then, we deploy our contracts using Hardhat

npx hardhat run scripts/deploy.js --network fuji

To start the DApp on a local server, run

npm start

Testing

To run the tests in the test folder, you can run

npx hardhat test

Technologies used:

  • Solidity: creation of smart contracts
  • React: Frontend Javascript components
  • Rimble-UI: Some UI Components
  • Hardhat + Ethers + Chai: Deployment and Testing
  • Bootstrap: CSS Styling

About

Simple voting DApp on Avalanche created using Solidity and React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published