mjhm / hello_world_dapp Goto Github PK
View Code? Open in Web Editor NEWSimple voting dapp based on Mahesh Murthy's Medium article
License: MIT License
Simple voting dapp based on Mahesh Murthy's Medium article
License: MIT License
Hi, I'm trying to run your script on a DigitalOcean droplet. (Ubuntu 16)
When I run npm run ganache, I get this error.
**> @ ganache /home/naman/all-things-dapp/create-react-dapp/mydapp
ganache-cli
/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:71648
function VM (opts = {}) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
npm ERR! Linux 4.4.0-112-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "ganache"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! @ ganache: ganache-cli
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ ganache script 'ganache-cli'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ganache-cli
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/naman/all-things-dapp/create-react-dapp/mydapp/npm-debug.log**
Please help me resolve it. Thanks. Btw awesome implementation ๐ฏ
I type Jose
in the box and clicked "Vote". But I see nothing in the "Votes" column. Is there something wrong?
the file index.html is pointing web3.js version 0.x.x. It should point the version 1.0.0.
ie I used the below:
<script src="https://rawgit.com/ethereum/web3.js/1.0/dist/web3.min.js"></script>What do you run in order to change the contract and see the changes? For example if I wanted to make it so clicking "Vote" would add 2 votes, how do you redeploy that contract?
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.