A simple DApp for the elections of a Mayor in the magical land of Valadilène. The vote is possible thanks to the Soul token, an implementation of the ERC20 standard. Contracts are written in Solidity, while the frontend is implemented with Svelte and deployed over IPFS.
The doc here contains all the information needed to understand the project. Otherwise you can simply run it by doing the following:
Install the dependencies and optionally run the test to check wheter everything works.
cd backend/
npm install
npm run test
Run an instance of ganache to have a test network on which the contracts can be deployed.
npm run ganache
Deploy the contracts.
npm run deploy
You can go over https://valadilene.on.fleek.co/ where a deployed version over IPFS can be found. Otherwise you can build it yourself by following the instructions below.
Install the dependencies.
cd frontend/
npm install
Compile the frontend with Svelte and go over http://localhost:5000/.
npm run build
npm run start