Menu

Nakov.com logo

Thoughts on Software Engineering

Creating DApps with Ethereum, Solidity, Web3 and MetaMask

Yesterday I had a talk on the JS.talks() conference in Sofia on “Creating DApps with Ethereum“. I demonstrated how to create a “Document Registry” ADpp on the Ethereum blockchain network, using a smart contract coded in Solidity and connecting to the Ethereum network through the Web browser from JavaScript app using MetaMask and its Injected Web3 API.

I compiled the DocumentRegistry.sol smart contract code using Remix IDE and deployed it in a testing Ethereum blockchain network, created by using the TestRPC (it’s a Node.js package). Later, I connected from a JavaScript app to the smart contract using the Web3 API, provided by the MetaMask plugin for Chrome. The DApp users were able to check document validity against the blockchain registry (free for anyone). The smart contract owner were able to upload new valid documents on the blockchain registry through (paid transaction, consuming some gas, allowed for the smart contract owner only).

See the full source code of the demo at my GitHub profile: https://github.com/nakov/Ethereum-Web3-Document-Registry-Demo.

Watch the video from the conference (in Bulgarian language) here:

 

Previews (4,994), Views (80), Comments (0)

RSS feed for comments on this post. TrackBack URL

LEAVE A COMMENT