Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reuseman/voting-dapp
A DApp to elect the mayor of Valadilène
https://github.com/reuseman/voting-dapp
dapp erc20 ipfs solidity svelte unipi voting
Last synced: 10 days ago
JSON representation
A DApp to elect the mayor of Valadilène
- Host: GitHub
- URL: https://github.com/reuseman/voting-dapp
- Owner: reuseman
- Created: 2021-07-21T14:44:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-26T10:31:36.000Z (over 3 years ago)
- Last Synced: 2024-10-07T05:21:05.798Z (about 1 month ago)
- Topics: dapp, erc20, ipfs, solidity, svelte, unipi, voting
- Language: Svelte
- Homepage:
- Size: 10.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Peer to Peer and Blockchains assignment
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](https://valadilene.on.fleek.co/).![](docs/valadilene.gif)
## How to start?
The [doc](docs/final_project.pdf) here contains all the information needed to understand the project. Otherwise you can simply run it by doing the following:### 1. Deploy the Smart Contracts (backend)
Install the dependencies and optionally run the test to check wheter everything works.
cd backend/
npm install
npm run testRun 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
### 2. Deploy the DApp (frontend)
You can go over [https://valadilene.on.fleek.co/](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 installCompile the frontend with Svelte and go over [http://localhost:5000/](http://localhost:5000/).
npm run build
npm run start