Skip to content

alainncls/vote-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vote System

Build Contracts Build WebApp Coverage Status

This project aims to provide a DApp sample.
It allows the user to create "elections", add vote options to these elections and vote on these options.

Prerequisites

  1. Download and install Ganache
  2. Recommendation: create a workspace associated to this project truffle-config.js file, to get better logs

How to launch

This DApp is composed of 2 main folders:

  • blockchain for the smart contracts
  • www for the web application

Blockchain part

  1. Go to the blockchain folder and run npm install
  2. Start Ganache
  3. Test the contracts with truffle test
  4. Deploy the contract via truffle migrate
  5. Generate the TypeScript interfaces for the contracts with npm run types

Web application part

  1. Go to the www folder and run npm install
  2. Test the frontend with npm run test
  3. Launch the webapp with npm run start
  4. The webapp is available at http://localhost:8080/

To Do

Nothing at the moment