Giter Club home page Giter Club logo

blockchainvoting's Introduction

BlockChainVoting

A blockchain-based E-voting system, created as the final year project of Shri Bhagubhai Mafatlal Polytechnic. Teammates include me, Sayyam Gada and Charmee Mehta.

The application is MIT-Licensed.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:3000
npm start

Create your own .env file and the file should contain:

EMAIL=YOUR_EMAIL_ID
PASSWORD=YOUR_PASSWORD_FOR_EMAIL_ID

Install MetaMask extension (https://metamask.io/download.html) and make sure to have some Ether to test the application locally. Ether can be fetched from Rinkeby Faucet (https://faucet.rinkeby.io)

Note:

  • Make sure to install Node.js v11.14.0 to make sure the app runs fine. Testing for other node versions is yet to be done.
  • MongoDB must be working in background on localhost:27017
Please star the repo if it helped you in any way!

Tech Stack:

  • Solidity/Web3 (for writing/connecting the Blockchain contract)
  • Next.js & Semantic UI React (front-end)
  • MongoDB/ExpressJS/Node.js (back-end)
  • IPFS (file storage for images)

Screenshots of the app:

Homepage of the application:

Company registers/logs in:

Company creates an election if not created:

Dashboard on successful election creation:

List of candidates for the election (here, you can add candidates):

Candidate has been notified on the mail:

List of voters for the election (here, you can add voters):

Voters have been sent their secure usernames and passwords on the mail:

Voter login page:

Successful voting scenario:

Unsuccessful voting scenario:

Notification to each candidate and voter for the winner of candidates:

blockchainvoting's People

Contributors

mehtaansh avatar sayyam4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

blockchainvoting's Issues

npm install err

PS C:\Users\91956\Downloads\BlockChainVoting-master\BlockChainVoting-master> npm install
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\91956\Downloads\BlockChainVoting-master\BlockChainVoting-master\node_modules.staging\libp2p-crypto-secp256k1-177326e7\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\91956\Downloads\BlockChainVoting-master\BlockChainVoting-master\node_modules.staging\libp2p-crypto-secp256k1-177326e7\CHANGELOG.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\91956\Downloads\BlockChainVoting-master\BlockChainVoting-master\node_modules.staging\libp2p-crypto-secp256k1-177326e7\LICENSE'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\91956\Downloads\BlockChainVoting-master\BlockChainVoting-master\node_modules.staging\libp2p-crypto-secp256k1-177326e7\README.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\91956\Downloads\BlockChainVoting-master\BlockChainVoting-master\node_modules.staging\http-signature-bcf3197c\http_signing.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\91956\Downloads\BlockChainVoting-master\BlockChainVoting-master\node_modules.staging\libp2p-crypto-secp256k1-bd201d11\dist\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\91956\Downloads\BlockChainVoting-master\BlockChainVoting-master\node_modules.staging\multihashing-async-3e4527ed\benchmarks\hash.js'
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/dignifiedquire/webcrypto-shim.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\91956\AppData\Roaming\npm-cache_logs\2022-07-30T18_59_22_326Z-debug.log

npm install error

Hi,
While running 'npm install' I am getting error :
sushant@sprusty:~/Documents/webdev/study/BlockChainVoting$ npm install
npm ERR! code 1
npm ERR! path /home/sushant/Documents/webdev/study/BlockChainVoting/node_modules/sha3
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/home/sushant/Documents/webdev/study/BlockChainVoting/node_modules/sha3/build'
npm ERR! CXX(target) Release/obj.target/sha3/src/addon.o
npm ERR! sha3.target.mk:117: recipe for target 'Release/obj.target/sha3/src/addon.o' failed
npm ERR! make: Leaving directory '/home/sushant/Documents/webdev/study/BlockChainVoting/node_modules/sha3/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64

Hope, you were able to run this project successfully. How to solve this error.

npm install error

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/dignifiedquire/webcrypto-shim.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:

Cannot find module bcrypt_lib.node error

Hi! While running npm install, I am getting error below:
"Cannot find module bcrypt_lib.node". I tried "npm install -g npm" because npm message says I need to upgrade to a newer version, so run that and I am now getting the error message below:
ERROR: npm v9.1.1 is known not to run on Node.js v11.14.0. You'll need to upgrade
to a newer Node.js version in order to use this version of npm. This version of
npm supports the following node versions: ^14.17.0 || ^16.13.0 || >=18.0.0. You
can find the latest version at https://nodejs.org/.

ERROR:
/root/.nvm/versions/node/v11.14.0/lib/node_modules/npm/lib/utils/exit-handler.js:22
const hasLoadedNpm = npm?.config.loaded

What could be the problem? TIA!

Improving UI

Hello!! I would like to improve the UI for the website. I feel it is kind of basic and can be improved to a good extent.

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.