Skip to content

knxlab/VotingDapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voting DApp

This project has 2 branches :

  • main => dev / edit / whatever
  • goerli => This branch contains the contract + valid adress on the goerli test-net, you can just do yarn start and test the projet there.

Demo Links

Linked to local ganache => https://voting-dapp-david-quenet.vercel.app/

Linked to Goerli TestNet => https://voting-dapp-nuo7ih24q-knxlab.vercel.app/

Demo video

https://youtu.be/57DFA0ukBxE

Installation

Install dependencies

# Install Truffle globally and run `truffle unbox`
$ cd client
$ yarn install
$ cd ../truffle
$ yarn install

Deploy contract on ganache or goerli (You must add a .env with infura keys)

# cd truffle
$ yarn migrate-dev
$ yarn migrate-goerli

Start the react dev server.

$ cd client
$ yarn start

Truffle box FAQ

  • How do I use this with Ganache (or any other network)?

    The Truffle project is set to deploy to Ganache by default. If you'd like to change this, it's as easy as modifying the Truffle config file! Check out our documentation on adding network configurations. From there, you can run truffle migrate pointed to another network, restart the React dev server, and see the change take place.

  • Where can I find more resources?

    This Box is a sweet combo of Truffle and Create React App. Either one would be a great place to start!