Skip to content

Hackathon project on decentralized voting platform.

Notifications You must be signed in to change notification settings

kamal0620040/DeVote

Repository files navigation

bookverse-icon

De - Vote

"De-Vote" is the platform that replicate how can government can conduct elections in a safe and fair manner online using Blockchain technology that solves the problem of foreign employeers that are not able to vote in their own country election.

Run Locally - Frontend

Clone the project

  git clone https://github.com/kamal0620040/DeVote.git

Go to the project directory

  cd Devote

Install dependencies present in package.json file.

  npm install

Set environment variable present in .example.env file

Now, run the hardhat local network for conneting the wallet

  npx hardhat node

Deploy the smart contract locally by running Make sure that ether.js package version in package.json is >6. [only for deploting smart contract]

  npx hardhat run scripts/deploy.js --network localhost

Due to the issue of ether.js function in next.js version >= 13. Before running the project edit package.json and set ether.js version 5.4.2, run npm install and then create server

Finally, you can start the next.js server

  npm run dev

Run Locally - backend

Go to the backend directory from root directory

  cd backend

Setup python venv

  python3 venv myenv

Activate virtual environment [window command]

  myenv\Scripts\activate

Install all the required packages

  pip install -r requirements.txt

Apply migrations

  python manage.py migrate

Run the server

  python manage.py runserver

Tech Stack

Solidity, Next JS, Tailwind CSS, JSX, Ethereum, Hardhat, IPFS, Django

About

Hackathon project on decentralized voting platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published