Giter Club home page Giter Club logo

dapp-smart-contract's Introduction

dapp-smart-contract

Harness the power of Ethereum smart contracts, tokens and decentralized client apps with this examplary template.

Todo:

  • fixes
  • comments translation and documentation

This is showcase of almost every practical use of ethereum blockchain:

  • smart contracts,
  • tokenisation,
  • identity management.

How to get started:

  • Run the client contract dapp on node.js and open in browser (Chrome tested)
  • Login to your Metamask wallet plugin, select ropsten testnet and open contact client.
  • For this demo you will test ethereum account with some ether balance to confirm transactions.
  • Read and select checkboxes for some articles.
  • Click on the "Sign and engrave" button to sign transaction with Metamask. After few blocks the data are permanently stored in this particular smart contract.
  • You can come back at any time to check your approvals of selected articles or you can do this by checking network explorer.
  • [Admin mode] To manage smart contracts token balance (e.g for potential access control) for users and add articles you can click on settings icon no top right corner of contract client. You have to be the owner of smart contract to access this functions.

How to deploy your own smartcontract with client dapp on ropsten testnet:

  • Simply copy the contained smart contract(modify if needed) and paste it to remix.ethereum.org.
  • Click "Run" > "Create". You can view created smartcontract address on created instance.
  • Under "Compile" get "Details", check ABI
  • Copypaste smart contract address and ABI to correct lines in script.js and script-admin.js (watch for comments).
  • Run client on node.js and open client contract dapp.
  • You can start by creating new articles for your users to check in admin mode.

Platforms and libraries used:

  • Node.js with Express
  • Web3.js javascript interface for Ethereum blockchain
  • Remix.ethereum.org Solidity IDE and smart contract deployment on testnet
  • jQuery, MaterializeCSS with Google Material design icons

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.