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.
- Download and install Ganache
- Recommendation: create a workspace associated to this project
truffle-config.js
file, to get better logs
This DApp is composed of 2 main folders:
blockchain
for the smart contractswww
for the web application
- Go to the
blockchain
folder and runnpm install
- Start Ganache
- Test the contracts with
truffle test
- Deploy the contract via
truffle migrate
- Generate the TypeScript interfaces for the contracts with
npm run types
- Go to the
www
folder and runnpm install
- Test the frontend with
npm run test
- Launch the webapp with
npm run start
- The webapp is available at http://localhost:8080/
Nothing at the moment