A lightning talk on tools and workflow for building Smart Contract powered web applications
BuildingEthereumpoweredDAppsArpit Mathur@arpit
View Slide
@arpitQuick Poll● Software/Web Developers?○ JavaScript?■ React?○ Rails?
@arpitTraditional App Stack
@arpitDecentralized App Stack
@arpitCommunicating with the Network● JSON RPC● Web3.js● Injected Web3.js● Web dev framework (Truffle)
@arpitGanache / Ganache CLI
@arpitTruffle● “Rails for Ethereum Dapps”● “Truffle Boxes”: Preconfiguredprojectshttp://truffleframework.com/
@arpitRemix IDE
@arpitMetamask● Ethereum Wallet● Chrome Extension● Injects configured Web3.js intoyour page
@arpitA Simple Contract
@arpitWorkflow● Create Contract in Solidity● Move Contracts to /contracts directory● Compile contract:○ `truffle compile`● Run Ganache (local test net)● Deploy Contracts○ `truffle migrate`● Import Contract JavaScript stub in your clientside code○ import MyContract from '../../../build/contracts/MyContract.json'● Execute functions on Contract in JavaScript (at the right address)
@arpitProfit?
@arpitLinks and such!● http://truffleframework.com● https://solidity.readthedocs.io● https://metamask.io/