Watch video @ https://youtu.be/9aimIS2vP98
amand1996 / votechain Goto Github PK
View Code? Open in Web Editor NEWDecentralised Elections using Blockchain
Decentralised Elections using Blockchain
Watch video @ https://youtu.be/9aimIS2vP98
Does anyone know the password for the Admin panel?
ReferenceError: VotingContract is not defined
deployedContract.address
I tried to login by using Username : "admin" and password : "admin" but it is not working. if password is not 'admin' then please share the password.
else if there is another problem then share solution for it.
I am trying to execute the index.js with "npm run test" command. on the package.json the test field is : " "test": "./node_modules/mocha/bin/mocha tests/index.js --require babel-register --reporter mochawesome --timeout 30000 || exit 0",
"
when i run this command , i receive this error :
" '.' is not recognized as an internal or external command, operable program or batch file. "
what is the problem ???
Once I vote it stays on that page only
It does not move to another page
face1 = responseA[0].FaceId;
^
TypeError: Cannot read property 'id' of undefined at I:/Votechain-master/routes/index.js:164:28 at Request._callback (I:/Votechain-master/helpers/helper.js:21:4)
$ npm run testrpc
[email protected] testrpc C:\Users\Ch Muhammad Hasnat\Desktop\E-Voting\Bitvote-Update\Votechain
./node_modules/ethereumjs-testrpc/build/cli.node.js
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] testrpc: ./node_modules/ethereumjs-testrpc/build/cli.node.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] testrpc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ch Muhammad Hasnat\AppData\Roaming\npm-cache_logs\2019-09-06T14_57_06_277Z-debug.log
Can someone help me to run this project
I'm trying to start up the application using npm start
.
But while starting up, I'm constantly faced with this error
mongoose connection error: MongoNetworkError: failed to connect to server [ds127589.mlab.com:27589] on first connect [Error: getaddrinfo ENOTFOUND ds127589.mlab.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) { name: 'MongoNetworkError' }]
Here is the complete error :
`npm start
[email protected] start
node ./node_modules/nodemon/bin/nodemon.js --inspect index.js
[nodemon] 1.19.4
[nodemon] to restart at any time, enter rs
[nodemon] watching dir(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node --inspect index.js
Debugger listening on ws://127.0.0.1:9229/6f11fd40-e21e-45f6-ad66-b83df1610649
For help, see: https://nodejs.org/en/docs/inspector
mongoose: Cannot specify a custom index on _id
for model name "Voter", MongoDB does not allow overwriting the default _id
index. See http://bit.ly/mongodb-id-index
mongoose: Cannot specify a custom index on _id
for model name "Admin", MongoDB does not allow overwriting the default _id
index. See http://bit.ly/mongodb-id-index
mongoose: Cannot specify a custom index on _id
for model name "Candidate", MongoDB does not allow overwriting the default _id
index. See http://bit.ly/mongodb-id-index
(node:24508) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
(Use node --trace-deprecation ...
to show where the warning was created)
(node:24508) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
Listening on port 3000
mongoose connection error: MongoNetworkError: failed to connect to server [ds127589.mlab.com:27589] on first connect [Error: getaddrinfo ENOTFOUND ds127589.mlab.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
name: 'MongoNetworkError'
}]
at Pool. (C:\Users\91960\Votechain\node_modules\mongodb\lib\core\topologies\server.js:441:11)
at Pool.emit (node:events:513:28)
at C:\Users\91960\Votechain\node_modules\mongodb\lib\core\connection\pool.js:564:14
at C:\Users\91960\Votechain\node_modules\mongodb\lib\core\connection\pool.js:1000:11
at C:\Users\91960\Votechain\node_modules\mongodb\lib\core\connection\connect.js:32:7
at callback (C:\Users\91960\Votechain\node_modules\mongodb\lib\core\connection\connect.js:300:5)
at Socket. (C:\Users\91960\Votechain\node_modules\mongodb\lib\core\connection\connect.js:330:7)
at Object.onceWrapper (node:events:628:26)
at Socket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
onnection\pool.js:1000:11
at C:\Users\91960\Votechain\node_modules\mongodb\lib\core\connection\connect.js:32:7
at callback (C:\Users\91960\Votechain\node_modules\mongodb\lib\core\connection\connect.js:300:5)
at Socket. (C:\Users\91960\Votechain\node_modules\mongodb\lib\core\connection\connect.js:330:7)
at Object.onceWrapper (node:events:628:26)
at Socket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)[nodemon] app crashed - waiting for file changes before starting... `
Help will be appreciated !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.