Installing the Prereqs (General + Linux)

Mohammad Nauman
A free video tutorial from Mohammad Nauman
PhD, programmer, researcher, designer and teacher.
4.4 instructor rating • 9 courses • 13,491 students

Learn more from the full course

Hyperledger Fabric and Composer - First Practical Blockchain

A short, crash course to understand and deploy your first smart contract in a blockchain

01:29:46 of on-demand video • Updated November 2018

  • Understand the basics of a hash
  • Stunning SUPPORT. I answer questions on the same day.
  • Learn how this simple concept enables the powerful blockchain architecture
  • Learn how to install and configure Hyperledger Fabric using the easiest method available
  • Learn how to install and run Composer -- a high-level, easy to use interface to Fabric
  • Learn how to set up a REST API to use our blockchain from outside Fabric
  • Learn how to use a REST API testing application and then PHP to access data from our blockchain
English [Auto] Okay now that we have the basic concepts out of the way let's go ahead and set up our environment for the deployment of our blotching in this video we're going to cover installation on the next Ubuntu machine. However you can also take a look at the next video if you want to set up on a Mac you will notice that I have not mentioned Windows because it's highly recommended that you do not do this on Windows. It's not supported and it's going to give you a lot of headaches if you don't have a Linux machine you can simply go ahead and install one in a virtual environment such as virtual box or reinvent. In any case either go with a Ubuntu Ishy or iMac machine. So in this video we start with the installation on a Ubuntu machine. Now the way we're going to do this is we're going to open up the official composer documentation which is overhead. It's a type of leisure target Hublot slash composer and what we're going to do is we're going to look at the official documentation. We can go ahead and click on install Hebb Ledger composer and it will bring you to an installation documentation page. No I could have gone ahead and simply given you all the commands. In fact I'm going to compile them in a text file and share them with you in the Resources page. But it's extremely important that you get in the habit of looking at the official documentation one because if in the future the commands change you should be able to cover them even if my course becomes outdated. Even though I'll try to keep it updated and to because you need to understand and get in the habit of perusing the official documentation it will help you deal with things and it will help you grow a lot. If you can read the official documentation because that's how experts learn. So anyway let's go ahead and open this page. So this is installing hyperplasia Composit. You'll notice that we're going with composer and not fabric because composer is going to set up fabrics for us automatically. So here first we want to go to installing prerequisites ph. So I opened this up here and it's going to give you two options. You can do it in Mac OS. So let's start with Ubuntu. You will notice that it's telling you that you should have either fourteen point or 4 or 16 point or four ideas for 64 bit. If you try to do this on a seventeen point ten machine at the moment it's not going to even start. So it's going to simply quit at the first step. So make sure you are at sixteen point four. I am currently using sixteen point four for this right. It's telling you some other stuff over here as well but you don't really need to concern yourself about that. It's meant to install it for you. Next we have some information on here. This is very important. The gist of this is that do not try to do this as a rule to simply log in as your normal user and execute all the months without to do so just execute them as your normal user. So don't worry about the rest of the things. So this is the first command that you need to do. We need to do this all. And let's go ahead and copy this. You got it. So I'm just talking to you here. And I'm going to go ahead and execute this so you notice that I'm on a Linux machine which is 64 bit and so I'm going to minus old. So that's capital and I'm going to basically you have a lot here in my home directory. This is going to go ahead and download the next Desch Ubuntu dot sh script. That's what I want to do is I want to make this file executable so I'm going to say c h mod you Plus-X and I'm going to say Rex that you want to do it as such. So just in case you are not comfortable with these commands you can look at my Linux command line from zero to expert course and that should get you started. Even though I'm trying to explain all the come ons here as they come along. So we're trying to make this exit in this fight we're trying to make this fine executable so that we can simply say don't slash pre-text that Ubuntu got sh. So what this group is trying to do is it's going to download Dawkin it's going to download get it's going to download Naude It's when you don't know everything that is required for running in fabric and composer. So let's go ahead and run this and it's going to ask me for my password. So enter your current users password and it's going to go ahead and install everything. So because I've done this before it's going to do all the installations if it asks you for some confirmation confirmation you can simply confirm from them by hitting the enter key or by pressing Yes whatever information is needed. Now while this is working let's go ahead and move back to the browser and I'll try to explain some of the components. So the first thing that is going to install the stalker. So if you're not sure what it is Dogon is a container and monument Let's try and explain this by going to the official proper documentation. So you go to docs dot dot dot com and you can click on get darker. But but we don't really need that right now because the script is downloading it. Thoughts. Instead what we want to do is we want to understand what the stalker is. So you can go to get started with Daka and see some very important information such as the installation and two images which are really important in explaining what Talking does. So you might be familiar with a virtual machine but which the machine does is own some infrastructure. You have a hypervisor and some was on top of that. What's worse you installed a virtual machine manager such as BMV or which are box within that virtual machine you install against us and then you install libraries and then you run the app that can only run on that virtual machine. Now this becomes really applauded because the virtual machine is a full fledged machine. It's going to have a full fledged operating system running on top of it and that makes with your machines very slow. So people who work with washing machines know that they're ready so they require a lot of computation bar. And you cannot deploy them on normal desktop machines in any reasonable setting. So instead the way docking handles this is instead of creating a complete virtual machine on top of the host OS. You have the dock an executable. And what it does is it enables containers containers that kind of like Lightwood which are machines and instead of having a full fledged OS they are going to have the bodies and the libraries which app be required to run. And what is going to do is it's going to translate on the guns coming in from these libraries. Do something that the host can understand. So now we only have one host OS and this is very lightweight doggedly it is going to enable app to run on Horst west even if it is not written for it. And so that's the concept of D'Agata we don't want to go into further detail on here because for this course it's important only that you understand that docket is going to enable a container and our fabric is going to run within a container and everything is going to run within containers. And for that we need daga but you don't have to install it because the pre-req script is going to strong for us so let's go back now to our script and it's still taking a little bit of time but it's going to go ahead and install everything for us. So I'm going to skip ahead until this is all done. And another thing that this script is installing is no dodgiest. So if you're not familiar with node it's a server side javascript engine. So it's going to allow you to execute javascript on the server side. It's a very powerful framework and a lot of people are moving from BHP and Django and a lot of other architectures to load dodgiest because of its part. And we're going to use composer to communicate to fabric through Dodge's. And you don't have to do just for this particular course but it does help if you want to use it in production. But as far as we're concerned we're only going to use some basic javascript that would be very easy to understand. Even if you have not had a lot of experience with Javascript. So anyway if you're trying to install or just or if you want to use it might be useful. But again the pre-req script is taking care of it for us. OK so now it's done. And as he's telling us these log out and log in before continuing. So I'm going to do that. So now our projects are done and we can move ahead and install our Devon.