Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliencrn/voting-dapp
A basic voting dapp (decentralized application) written in Solidity & React.
https://github.com/juliencrn/voting-dapp
dapp react solidity truffle web3
Last synced: about 1 month ago
JSON representation
A basic voting dapp (decentralized application) written in Solidity & React.
- Host: GitHub
- URL: https://github.com/juliencrn/voting-dapp
- Owner: juliencrn
- Created: 2021-08-06T21:37:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-07T03:31:51.000Z (over 3 years ago)
- Last Synced: 2024-10-12T00:46:02.312Z (3 months ago)
- Topics: dapp, react, solidity, truffle, web3
- Language: JavaScript
- Homepage:
- Size: 1.36 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Voting Dapp
A basic voting dapp (decentralized application) written in Solidity & React.
![Screenshot](./Screenshot.png)
After have followed this [tutorial](https://www.youtube.com/watch?v=3681ZYbDSSk) on Youtube from [Dapp University](https://www.youtube.com/channel/UCY0xL8V6NzzFcwzHCgB8orQ), I built this voting app from scratch with React as the frontend.
## Get started
Requires
- NodeJS
- npm
- git
- truffle (dapp EVM framework)
- Ganache (local blockchain)Download the repo:
```sh
git clone https://github.com/juliencrn/voting-dapp
cd voting-dapp
```Then start the **Ganache** blockchain. I use the default macOS client on the default port (`7545`), but you can also use `ganache-cli` and change port in the `truffle-config.js` file.
Launch Truffle in console mode, and deploy contract:
```sh
truffle console# type the following inside the truffle console
# truffle(development)>
> test
> migrate --reset
```Now, start the front-end application:
```sh
cd client
npm install
npm start
```Open http://localhost:3000, connect your MetaMask wallet, and vote.