GithubHelp home page GithubHelp logo

devote's Introduction

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

devote's People

Contributors

kamal0620040 avatar manidumaru avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.