Deploy a blockchain web-app with Hyperledger Fabric 1.4 - Concepts & Code

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ค. 2024
  • This video will talk through the concepts needed to understand a Hyperledger Fabric solution (first 23 minutes) and then go into the smart contract and client application code (last 17 minutes). The code features a sample Hyperledger Fabric web-app built with Vue.js, Node.js + Express, and the Hyperledger Fabric 1.4 Node.js SDK.
    Code for the demo used in the video - github.com/IBM/evote
    Slides used in video - www.slideshare.net/HoreaPorut...
    Try the new free IBM Blockchain Platform by following the steps below.
    --------------------------HOW TO GET A FREE IBM BLOCKCHAIN SERVICE------------------------
    1. Create a free IBM Cloud account here: tinyurl.com/y4mzxow5
    2. Log in to your IBM Cloud account
    3. Once you see your IBM Cloud dashboard, click on "Upgrade Account" in the top-right corner under your Account name.
    4. Enter Credit Card info, and click submit.
    5. This will give you $200 in free IBM Cloud account credit, to use in 30 days.
    6. At the top of your IBM Cloud account dashboard, search for "Kubernetes" and click on "Kubernetes Cluster", and then click "Create".
    7. When it asks to select a plan, choose the "Free" plan and then click "Create Cluster".
    8. Wait for 20 minutes as your cluster is deploying.
    9. After your cluster is deployed, at the top of your IBM Cloud account dashboard, search for "Blockchain". And then click on "Blockchain Platform" and then select the "standard" pricing plan, and click "Create".
    10. From your IBM Cloud dashboard, click on your IBM Blockchain Platform service. From there, when it asks you to deploy to a cluster, choose your free cluster! Once your deployment is finished you can now access your IBM Blockchain platform account!
    Recorded at O'Reilly Open Source Software Conference - Portland, OR, July 17, 2019.
    Talk Title: Deploy a blockchain web-app with Hyperlegder Fabric.
    Note: When adding a new organization to an existing network (as was asked from the crowd in the question at 37:40) - you must update the endorsement policy to add the new organization. You can read more about the syntax here: hyperledger-fabric.readthedoc...
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 65

  • @qzwwzt
    @qzwwzt 5 ปีที่แล้ว +2

    Great as always. Thanks a lot !

  • @dubeymanojkumar
    @dubeymanojkumar 4 ปีที่แล้ว +2

    Amazing session , very well explained ... thankyou for detail description on how to start with IBM Blockchain platform

  • @nguyenquan3668
    @nguyenquan3668 4 ปีที่แล้ว +2

    That's great...thanks a lot!

  • @cozettecuzi8856
    @cozettecuzi8856 ปีที่แล้ว

    Very interesting and helpful session, thank you for the simplicity and the clearance.

  • @yasinozkurt
    @yasinozkurt 2 ปีที่แล้ว +1

    Great course btw, thanks very much!

    • @horeaporutiu
      @horeaporutiu  ปีที่แล้ว

      Thank you for your comment :)

  • @mozasajidah
    @mozasajidah 3 หลายเดือนก่อน

    Thank you so much for sharing this knowledge! This is what I've been looking for 🥺😭💫🤩

    • @horeaporutiu
      @horeaporutiu  2 หลายเดือนก่อน

      Glad it was helpful!

  • @MailfromGod
    @MailfromGod ปีที่แล้ว

    Amazing session , thanks a lot

  • @raneemrashid9018
    @raneemrashid9018 4 ปีที่แล้ว

    Great Session Horea!! What about if we want to make a business network using the Model Network Starter Template, like the same template on npm (e.g marbles-network).. How it'll be imported/selected in IBM Blockchain Platform..

  • @ankushraj3599
    @ankushraj3599 ปีที่แล้ว

    Great explanation, I am new to hyperledger fabric but can you explain me one thing if i start network and again then hyperledger explorer shows new blocks count.

  • @khwabsheth7808
    @khwabsheth7808 4 ปีที่แล้ว

    Thanks Horea for explaining in a simple way. Is there any easy way to add a new organisation in already running HF ? Or adding an extra node and sync it with other nodes?

    • @khwabsheth7808
      @khwabsheth7808 4 ปีที่แล้ว

      My current structure is I have two nodes and each organisation with two peers running on each node. No I want to add third organisation on it's own separate node but in the same channel of HF.

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว

      Hi Khwab - yes, you can use a script in the first-network Hyperledger fabric samples repo to do this - github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/eyfn.sh
      Note that if you want to do this manually, and see all the steps (such as generating cryptographic material, join new org to the channel, update the channel's endorsement policy, etc) you can find more info here:
      hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html#bring-org3-into-the-channel-manually

  • @palaashatri
    @palaashatri 4 ปีที่แล้ว

    Hi Horea, if you have some time, can I connect with you on Twitter (or LinkedIn)?
    I have a LOT of questions regarding Blockchain, and would love for some practical guidance on Fabric in specific!

  • @adiilahkramutally5846
    @adiilahkramutally5846 3 ปีที่แล้ว +2

    Hello. How can I connect the IBM hyperledger smart contracts to my flutter front-end mobile app?

  • @user-ek5nw8jb6q
    @user-ek5nw8jb6q 4 ปีที่แล้ว +1

    What is the oposit possibility to connect client application on Fabric, without using Cloud platforms? You mentioned that you did test all locally before you moved to Cloud. Could you please shortly explain how could I connect frontend application with locally installed Hyperledger Fabric? Thanks. :)

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว +6

      Yes - check this guide here - it makes use of the VSCode extension that brings up a local Hyperledger Fabric network with a click of a button. Check this repository for all steps, details, and prerequisites.
      github.com/IBM/evote/blob/master/docs/run-local.md

    • @user-ek5nw8jb6q
      @user-ek5nw8jb6q 4 ปีที่แล้ว +1

      @@horeaporutiu Thanks for reply Horea.

    • @arariks
      @arariks 4 ปีที่แล้ว +1

      @@horeaporutiu thanks a ton !!!. Was looking for a local installation to get started.

  • @zacs7054
    @zacs7054 4 ปีที่แล้ว +1

    Hi, Nice presentation... Is there any charge/fee (how much) whenever a smart contract is submitted to Hpyerledger Fabric and World State...

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว

      No

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว +1

      Hyperledger fabric does not depend on any crypto to submit transactions. In this way, it is very different than ethereum

  • @erichreinholtz
    @erichreinholtz 3 ปีที่แล้ว

    In sfarsit cineva care explica la obiect si coerent! Multumesc mult!

  • @yasinozkurt
    @yasinozkurt 2 ปีที่แล้ว

    How to make it distributed ? Say i built first fabric at some cloud server, then what should i do to create the second node at some other cloud server and bind them to compose the first peer?

    • @horeaporutiu
      @horeaporutiu  ปีที่แล้ว

      I’ve never done this yet but this may be useful lists.hyperledger.org/g/fabric/topic/hyperledger_fabric_multi/76423982

  • @MrNederlande
    @MrNederlande 3 ปีที่แล้ว +1

    Very good talk, thank you!
    Is there any reason why you await all the statements?

    • @horeaporutiu
      @horeaporutiu  3 ปีที่แล้ว

      Thank you for the question, it's because I need the data from the previous step to ensure the program runs correctly, so I am waiting for the promise to either accept or reject before moving on to the next step.

    • @MrNederlande
      @MrNederlande 3 ปีที่แล้ว +1

      @@horeaporutiu Yes, but not all the statements where you used await return promises :)

    • @horeaporutiu
      @horeaporutiu  3 ปีที่แล้ว

      @@MrNederlande Good point! :) Need to improve those fundamentals!

  • @g00dvibes47
    @g00dvibes47 4 ปีที่แล้ว +3

    Great presentation. I am actually giving a similar one in a month at a conference. Do you have an email address you can be reached at?

  • @yasinozkurt
    @yasinozkurt 2 ปีที่แล้ว +1

    If node.js server is down, how can people access and make transaction on the distributed network ?

    • @horeaporutiu
      @horeaporutiu  ปีที่แล้ว

      In a more distributed network, only a majority of the nodes will need to be up to approve transactions. This will be set at the beginning in the initial genesis block.

  • @dustin_echoes
    @dustin_echoes 3 ปีที่แล้ว

    Ok I'm so confused. Is the wallet stored on the node server, or the user's local machine, in the context of a web application.

    • @horeaporutiu
      @horeaporutiu  3 ปีที่แล้ว

      Users local machine

    • @dustin_echoes
      @dustin_echoes 3 ปีที่แล้ว

      @@horeaporutiu So how is the browser supposed to access user's local file if you don't specifically upload them then?

    • @dustin_echoes
      @dustin_echoes 3 ปีที่แล้ว

      @@horeaporutiu Actually I had a look at the code you provided in description. It seemed the wallet was created in the server code. Why did you say users local machine stored the wallet?

    • @horeaporutiu
      @horeaporutiu  3 ปีที่แล้ว

      @@dustin_echoes You are right, the wallet is created in the server code. I was alluding to the fact that it is a file-system based wallet.
      hyperledger-fabric.readthedocs.io/en/release-2.2/developapps/wallet.html#types

  • @aymenabdellaoui793
    @aymenabdellaoui793 4 ปีที่แล้ว +1

    hello can i make the identity of the voter anonymous and build this app without the world state and add more security to the login and registration proccess ?

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว

      you can do everything you said above, except there will always be a world state since without that there would be no data, that is being changed, which means there would be no blocks being added to the ledger.

    • @aymenabdellaoui793
      @aymenabdellaoui793 4 ปีที่แล้ว

      @@horeaporutiu you said in the video that you can delete and the world state keeps the data of the peers so where is the transparency in the app

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว

      aymen abdellaoui the blockchain itself (the list of transactions which shows how you’ve modified the world state from the genesis block - the first block that is recorded on the ledger).

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว

      aymen abdellaoui you can delete things from the world state, but that deletion operation itself is recorded onto the blockchain into a block.

    • @aymenabdellaoui793
      @aymenabdellaoui793 4 ปีที่แล้ว +1

      @@horeaporutiu so if someone delete a peer vote from the world state than the peer could vote again and if we dont wanna keep the identity of voters we cant tell which peer change his vote right ?

  • @fareedezzedeen8017
    @fareedezzedeen8017 3 ปีที่แล้ว

    Horea, since you left IBM is it possible that you help Azure team to support HLF 2 in Azure platform?

    • @horeaporutiu
      @horeaporutiu  2 ปีที่แล้ว

      Hi Farewd, what is the biggest thing you need in terms of support for HLF 2 in Azure?

    • @fareedezzedeen8017
      @fareedezzedeen8017 2 ปีที่แล้ว

      @@horeaporutiu
      As we know Azure had Depreciated the 1.4 HLF service offering, without any alternative for 2.x until now, and I assume that Microsoft Azure team responsible for this is facing many challenges that forced them to depreciate a product instead of having a new version or alternate product that continue to support new releases of HLF,
      And it will be great if you join that team 🙏
      For me I work with a company and we want to develop a new HLF solution for our operations. and we want to start with latest release and take advantage of some new features like private data and others, and our solutions infrastructure depends on Azure, so it will be great to "make it all, make sense" (Microsoft old slogan)
      🙂

  • @aniketnikam7285
    @aniketnikam7285 3 ปีที่แล้ว +1

    Where are the commands to set this up on my local machine.

    • @horeaporutiu
      @horeaporutiu  ปีที่แล้ว

      Hi please check out the documentation here: hyperledger-fabric.readthedocs.io/en/release-2.2/getting_started.html

  • @trymindset
    @trymindset 4 ปีที่แล้ว +1

    Can I build a public blockchain using hyperledger

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว +2

      Hyperledger Fabric is specifically made to be a permissioned blockchain - private by nature. I guess you can make it more "public" by approving everyone to join your network, but if you want to build a public blockchain ethereum would be the best option.

    • @OumarFALL
      @OumarFALL 4 ปีที่แล้ว

      No. But you can use Hyperledger Sawtooth to build a public (or private) blockchain network.

  • @tonychen4558
    @tonychen4558 4 ปีที่แล้ว +1

    Problem authorizing the credit card. We are unable to process your request: Transaction Rejected. Please contact Cloud Trust Enablement at verify@us.ibm.com for further information.

    • @tonychen4558
      @tonychen4558 4 ปีที่แล้ว

      when upgrading account

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว

      Will bring this up to my team - thank you for your response.

    • @horeaporutiu
      @horeaporutiu  4 ปีที่แล้ว

      @@tonychen4558 Please send an email to verify@us.ibm.com and let them know of this issue - they will help you resolve it.

  • @alexandrecsu
    @alexandrecsu 22 วันที่ผ่านมา

    You lost me at democrat vote