I am a Junior JS Dev, new to Ethereum. I am trying to test this Dapp ( Ballot ) locally, have all the pre-reqs ready, but not sure how to open it from the mist browser.
Will appreciate any help.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityI am a Junior JS Dev, new to Ethereum. I am trying to test this Dapp ( Ballot ) locally, have all the pre-reqs ready, but not sure how to open it from the mist browser.
Will appreciate any help.
After following the instruction in the readme, just drag the main page into mist or if you host it in a webserver enter the corresponding url e.g : 127.0.0.1/vote.html in the top bar. or use the browse option located in the menu at left.
In summary, navigate to Contracts -> Deploy New Contract, then paste the contract into the source code textbox and the send/submit. The wallet will send the compiled bytecode to the network.
You will need a little Ether to pay for the gas needed. On testnet, this is easily acquired through mining, at no cost. After the contract is deployed, you'll see it tracked on the contracts panel.
Related: How to specify the gas when deploying a new contract in Mist?
Alternatively, consider experimentation with the in-memory Remix (a.k.a. Browser Solidity) browser solution. https://ethereum.github.io/browser-solidity/
This is an in-memory solution that doesn't persist between sessions. It's fast and there are few prerequisites.
Hope it helps.