GithubHelp home page GithubHelp logo

ibm / blockchainbean2 Goto Github PK

View Code? Open in Web Editor NEW
121.0 25.0 86.0 139.39 MB

This code pattern shows how to model a supply-chain network using the IBM Blockchain Platform and is based on a collaboration with Brooklyn Roasting Company. The story, along with the supply-chain documents that were used to model this network, can be found at: https://www.ibm.com/blockchainbean. Note that the 'view the blockchain' button is being migrated''

Home Page: https://developer.ibm.com/patterns/coffee-supply-chain-network-hyperledger-fabric-blockchain-2/

JavaScript 27.31% TypeScript 71.37% HTML 1.31%
blockchain hyperledger-fabric nodejs kubernetes

blockchainbean2's Introduction

WARNING: This repository is no longer maintained โš ๏ธ

This repository will not be updated. I will check periodically for pull requests, but do not expect a quick response.

Create a fair trade supply network with Hyperledger Fabric and IBM Blockchain Platform V2

This code pattern is based on a recent proof-of-concept developed in collaboration with a coffee roasting company that was nice enough to let us use their supply-chain documents. The finished product of this code pattern is a cloud-based blockchain API, that any other UI app can call. An example UI app that leverages our blockchain API can be found in the screenshots below.

Each cup has a history based on which batch of coffee was used make the cup, which you can see below. Additionally, you can see other details such as who poured the cup, at what time the cup was poured, which type of beans were used, etc. For example, a sample cup 'NJB123' for the result shown below.

packageFile

In this code pattern we will create a blockchain app that increases visibility and efficiency in the supply chain of a coffee retailer using IBM Blockchain Platform V2 Beta. We will use different transactions to show different possible actions for the different participants in the supply chain. This sample application will record all transactions on the IBM Blockchain Platform V2 Beta, and enable a coffee retailer to ensure the customer that their coffee is organic and fair-trade. The code pattern can be useful to developers that are looking into learning more about creating applications that integrate supply chains with Hyperledger Fabric.

When the reader has completed this code pattern, they will understand how to:

  • Interact with the (free) IBM Blockchain Platform V2 Beta
  • Build a blockchain back-end using Hyperledger Fabric
  • Create and use a (free) Kubernetes Cluster
  • Deploy a Node.js app in the cloud that will interact with our smart contract

Flow Diagram



Flow Description

  1. The blockchain operator sets up the IBM Blockchain Platform 2.0 service.
  2. The IBM Blockchain Platform 2.0 creates a Hyperledger Fabric network on an IBM Kubernetes Service, and the operator installs and instantiates the smart contract on the network.
  3. The Node.js application server uses the Fabric SDK to interact with the deployed network on IBM Blockchain Platform 2.0 and creates APIs for a web client.
  4. The Loopback 4 client uses the Node.js application API to interact with the network.
  5. The user interacts with the Loopback 4 web interface to update and query the blockchain ledger and state.

Included components

  • IBM Blockchain Platform V2 Beta gives you total control of your blockchain network with a user interface that can simplify and accelerate your journey to deploy and manage blockchain components on the IBM Cloud Kubernetes Service.
  • IBM Cloud Kubernetes Service creates a cluster of compute hosts and deploys highly available containers. A Kubernetes cluster lets you securely manage the resources that you need to quickly deploy, update, and scale applications.
  • IBM Blockchain Platform Extension for VS Code is designed to assist users in developing, testing, and deploying smart contracts -- including connecting to Hyperledger Fabric environments.

Featured technologies

  • Hyperledger Fabric v1.4 is a platform for distributed ledger solutions, underpinned by a modular architecture that delivers high degrees of confidentiality, resiliency, flexibility, and scalability.
  • Node.js is an open source, cross-platform JavaScript run-time environment that executes server-side JavaScript code.
  • Loopback 4 LoopBack is a highly-extensible, open-source Node.js framework that enables you to: Create dynamic end-to-end REST APIs with little or no coding. Access data from major relational databases, MongoDB, SOAP and REST APIs. Incorporate model relationships and access controls for complex APIs.

Watch the Video - Create a fair trade supply network with Hyperledger Fabric 1.4 (Cloud)

Watch the Video - Create a fair trade supply network with Hyperledger Fabric 1.4 (Local)

Prerequisites

This pattern assumes you have an IBM Cloud account, VSCode and IBM Blockchain Platform Extension for VSCode installed

Steps (Cloud Deployment)

To run a local network, you can find steps here.

  1. Clone the Repo
  2. Install Dependencies
  3. Package Contract
  4. Create IBM Cloud services
  5. Build a network
  6. Deploy blockchainbean2 Smart Contract on the network
  7. Connect application to the network
  8. Run the application

Step 1. Clone the Repo

Git clone this repo onto your computer in the destination of your choice, then go into the web-app folder:

HoreaPorutiu$ git clone https://github.com/horeaporutiu/blockchainbean2.git

Navigate to the web-app directory:

HoreaPorutiu$ cd blockchainbean2/web-app

Step 2. Install Dependencies

Install required dependencies using NPM:

web-app$ npm install --ignore-scripts

Step 3. Package Contract

packageFile Right-click under your folders in your workspace area and then click Add Folder to Workspace and then highlight the blockchainbean/lib directory as shown in the picture below, and then click on add:

packageFile

Next, we have to package the smart contract. Click on the F1 button on your keyboard, which will bring up the VSCode command palette. From there, navigate and click on Package a Smart Contract Project. packageFile

Next, the extension will ask the following question:

Choose a workspace folder to package

Click on the lib folder - note we do not want to package our client (i.e. our web-app directory).

packageFile

If all went well, you should see the following.

packageFile

Note that this .cds file is extremely important if we want to run our smart contract on the cloud.

Step 4. Create IBM Cloud services

  • Create the IBM Cloud Kubernetes Service. You can find the service in the Catalog. For this code pattern, we can use the Free cluster, and give it a name. Note, that the IBM Cloud allows one instance of a free cluster and expires after 30 days. The cluster takes around 10-15 minutes to provision, so please be patient!




  • After your kubernetes cluster is up and running, you can deploy your IBM Blockchain Platform V2 Beta on the cluster. The service walks through few steps and finds your cluster on the IBM Cloud to deploy the service on.


  • Once the Blockchain Platform is deployed on the Kubernetes cluster, you can launch the console to start operating on your blockchain network.


Step 5. Build a network

We will build a network as provided by the IBM Blockchain Platform documentation. This will include creating a channel with a single peer organization with its own MSP and CA (Certificate Authority), and an orderer organization with its own MSP and CA. We will create the respective identities to deploy peers and operate nodes.

Create your organization and your entry point to your blockchain

  • Create your peer organization CA

    • Click Add Certificate Authority.
    • Click IBM Cloud under Create Certificate Authority and Next.
    • Give it a Display name of Org1 CA.
    • Specify an Admin ID of admin and Admin Secret of adminpw.


  • Associate the identity

  • In the Nodes tab, select the Org1 CA once it is running (indicated by the green box in the tile).
  • Click Associate identity on the CA overview panel.
  • On the side panel, select Enroll ID.
  • Provide an Enroll ID of admin and an Enroll secret of adminpw. Use the default value of Org1 CA Admin for the Identity display name.
  • Click Associate identity.

associateId

  • Use your CA to register identities

    • Select the Org 1 CA Certificate Authority that we created.
    • First, we will register an admin for our organization "org1". Click on the Register User button. Give an Enroll ID of org1admin, and Enroll Secret of org1adminpw. Click Next. Set the Type for this identity as client and select org1 from the affiliated organizations drop-down list. We will leave the Maximum enrollments and Add Attributes fields blank.
    • We will repeat the process to create an identity of the peer. Click on the Register User button. Give an Enroll ID of peer1, and Enroll Secret of peer1pw. Click Next. Set the Type for this identity as peer and select org1 from the affiliated organizations drop-down list. We will leave the Maximum enrollments and Add Attributes fields blank.


  • Create the peer organization MSP definition

    • Navigate to the Organizations tab in the left navigation and click Create MSP definition.
    • Enter the MSP Display name as Org1 MSP and an MSP ID of org1msp.
    • Under Root Certificate Authority details, specify the peer CA that we created Org1 CA as the root CA for the organization.
    • Give the Enroll ID and Enroll secret for your organization admin, org1admin and org1adminpw. Then, give the Identity name, Org1 Admin.
    • Click the Generate button to enroll this identity as the admin of your organization and export the identity to the wallet. Click Export to export the admin certificates to your file system. Finally click Create MSP definition.


  • Create a peer
    • On the Nodes page, click Add peer.
    • Click IBM Cloud under Create a new peer and Next.
    • Give your peer a Display name of Peer Org1.
    • On the next screen, select Org1 CA as your Certificate Authority. Then, give the Enroll ID and Enroll secret for the peer identity that you created for your peer, peer1, and peer1pw. Then, select the Administrator Certificate (from MSP), Org1 MSP, from the drop-down list and click Next.
    • Give the TLS Enroll ID, admin, and TLS Enroll secret, adminpw, the same values are the Enroll ID and Enroll secret that you gave when creating the CA. Leave the TLS CSR hostname blank.
    • The last side panel will ask you to Associate an identity and make it the admin of your peer. Select your peer admin identity Org1 Admin.
    • Review the summary and click Submit.


Create the node that orders transactions

  • Create your orderer organization CA

    • Click Add Certificate Authority.
    • Click IBM Cloud under Create Certificate Authority and Next.
    • Give it a unique Display name of Orderer CA.
    • Specify an Admin ID of admin and Admin Secret of adminpw.


  • Associate the identity

  • In the Nodes tab, select the Orderer CA once it is running (indicated by the green box in the tile).
  • Click Associate identity on the CA overview panel.
  • On the side panel, select Enroll ID.
  • Provide an Enroll ID of admin and an Enroll secret of adminpw. Use the default value of Orderer CA Admin for the Identity display name.
  • Click Associate identity.

associateId

  • Use your CA to register orderer and orderer admin identities

    • In the Nodes tab, select the Orderer CA Certificate Authority that we created.
    • First, we will register an admin for our organization. Click on the Register User button. Give an Enroll ID of ordereradmin, and Enroll Secret of ordereradminpw. Click Next. Set the Type for this identity as client and select org1 from the affiliated organizations drop-down list. We will leave the Maximum enrollments and Add Attributes fields blank.
    • We will repeat the process to create an identity of the orderer. Click on the Register User button. Give an Enroll ID of orderer1, and Enroll Secret of orderer1pw. Click Next. Set the Type for this identity as peer and select org1 from the affiliated organizations drop-down list. We will leave the Maximum enrollments and Add Attributes fields blank.


  • Create the orderer organization MSP definition

    • Navigate to the Organizations tab in the left navigation and click Create MSP definition.
    • Enter the MSP Display name as Orderer MSP and an MSP ID of orderermsp.
    • Under Root Certificate Authority details, specify the peer CA that we created Orderer CA as the root CA for the organization.
    • Give the Enroll ID and Enroll secret for your organization admin, ordereradmin and ordereradminpw. Then, give the Identity name, Orderer Admin.
    • Click the Generate button to enroll this identity as the admin of your organization and export the identity to the wallet. Click Export to export the admin certificates to your file system. Finally click Create MSP definition.


  • Create an orderer

    • On the Nodes page, click Add orderer.
    • Click IBM Cloud and proceed with Next.
    • Give your peer a Display name of Orderer.
    • On the next screen, select Orderer CA as your Certificate Authority. Then, give the Enroll ID and Enroll secret for the peer identity that you created for your orderer, orderer1, and orderer1pw. Then, select the Administrator Certificate (from MSP), Orderer MSP, from the drop-down list and click Next.
    • Give the TLS Enroll ID, admin, and TLS Enroll secret, adminpw, the same values are the Enroll ID and Enroll secret that you gave when creating the CA. Leave the TLS CSR hostname blank.
    • The last side panel will ask to Associate an identity and make it the admin of your peer. Select your peer admin identity Orderer Admin.
    • Review the summary and click Submit.


  • Add organization as Consortium Member on the orderer to transact

    • Navigate to the Nodes tab, and click on the Orderer that we created.
    • Under Consortium Members, click Add organization.
    • From the drop-down list, select Org1 MSP, as this is the MSP that represents the peer's organization org1.
    • Click Submit.


Create and join channel

  • Create the channel

    • Navigate to the Channels tab in the left navigation.
    • Click Create channel.
    • Give the channel a name, mychannel.
    • Select the orderer you created, Orderer from the orderers drop-down list.
    • Select the MSP identifying the organization of the channel creator from the drop-down list. This should be Org1 MSP (org1msp).
    • Associate available identity as Org1 Admin.
    • Click Add next to your organization. Make your organization an Operator.
    • Click Create.


  • Join your peer to the channel

    • Click Join channel to launch the side panels.
    • Select your Orderer and click Next.
    • Enter the name of the channel you just created. mychannel and click Next.
    • Select which peers you want to join the channel, click Peer Org1 .
    • Click Submit.


Step 6. Deploy Blockchainbean2 Smart Contract on the network

  • Install a smart contract

    • Click the Smart contracts tab to install the smart contract.
    • Click Install smart contract to upload the blockchainbean smart contract package file, which you packaged earlier using the Visual Studio code extension look above at the end of step 3.
    • Click on Add file and find your packaged smart contract.
    • Once the contract is uploaded, click Install.


  • Instantiate smart contract

    • On the smart contracts tab, find the smart contract from the list installed on your peers and click Instantiate from the overflow menu on the right side of the row.
    • On the side panel that opens, select the channel, mychannel to instantiate the smart contract on. Click Next.
    • Select the organization members to be included in the policy, org1msp. Click Next.
    • Give Function name of init and leave Arguments blank.
    • Click Instantiate.


Step 7. Connect application to the network

  • Connect with sdk through connection profile

    • Under the Instantiated Smart Contract, click on Connect with SDK from the overflow menu on the right side of the row.
    • Choose from the dropdown for MSP for connection, org1msp.
    • Choose from Certificate Authority dropdown, Org1 CA.
    • Download the connection profile by scrolling down and clicking Download Connection Profile. This will download the connection json which we will use soon to establish connection.
    • You can click Close once the download completes.


  • Create an application admin

    • Go to the Nodes tab on the left bar, and under Certifacte Authorities, choose your organization CA, Org1 CA.
    • Click on Register user.
    • Give an Enroll ID and Enroll Secret to administer your application users, app-admin and app-adminpw.
    • Choose client as Type and any organization for affiliation. We can pick org1 to be consistent.
    • You can leave the Maximum enrollments blank.
    • Under Attributes, click on Add attribute. Give attribute as hf.Registrar.Roles = *. This will allow this identity to act as registrar and issues identities for our app. Click Add-attribute.
    • Click Register.


  • Update application connection

    • Copy the connection profile you downloaded into server folder
    • Name the connection profile you downloaded ibpConnection.json
    • Your new folder structure should look like below (i.e. should have your newly downloaded and newly renamed file ibpConnection.json:

    • The ibpConnection.json file should look something like this:

    • Update the config.json file with:
      • The connection json file name you downloaded.
      • The enroll id and enroll secret for your app admin, which we earlier provided as app-admin and app-adminpw.
      • The orgMSP ID, which we provided as org1msp.
      • The caName, which can be found in your connection json file under "organization" -> "org1msp" -> certificateAuthorities". This would be like an IP address and a port. This is circled in red above.
      • The username you would like to register.
      • Update gateway discovery to { enabled: true, asLocalhost: false } to connect to IBP.

the current default setup is to connect to a local fabric instance from VS Code

  • Once you are done, the final version of the config.json should look something like this (note that I took the caName from the above pic):
{
    "connection_file": "ibpConnection.json",
    "appAdmin": "app-admin",
    "appAdminSecret": "app-adminpw",
    "orgMSPID": "org1msp",
    "caName": "173.193.106.28:32634",
    "userName": "user1",
    "gatewayDiscovery": { "enabled": true, "asLocalhost": false }
}

Step 8. Run the application

  • Enroll admin

    • First, navigate to the server directory, and install the node dependencies.

      cd server
      npm install
    • โš ๏ธ if you get a grpc error run:

      npm rebuild
    • Run the enrollAdmin.js script

      node enrollAdmin.js
    • You should see the following in the terminal:

      msg: Successfully enrolled admin user app-admin and imported it into the wallet
  • Register User

    • Run the registerUser.js script.

      node registerUser.js
    • You should see the following in the terminal:

      Successfully registered and enrolled admin user user1 and imported it into the wallet
    • If you get an error such as this

    Error: fabric-ca request register failed with errors [[{"code":0,"message":"Registration of 'user1' failed: Identity 'user1' is already registered"}]]

    go ahead and change the user in config.json file, you can use any username you want. Once you save the config.json with a new user, for example:

        "userName": "user4",
    
    

    Run the same script agian.

  • Start the web client

    • In a new terminal, open the web-app folder from the room blockchainbean2 directory.

      cd web-app
    • Start the client:

      npm start

You can find the app running at http://localhost:8080/explorer If all goes well, you should see something like the picture below:

packageFile To get started submitting our first transaction on the network, we can update the ledger with some of our suppliers info, such as their address, their uniqueId, and their organization. To do this, first click on GrowerController. You should see the Controller expand with the GET/POST methods. Click on the green POST/Grower button and then Try it out to the right of the POST/Grower button. This will enable you to write in a request body. Go ahead and copy and paste the following JSON in to the request body. P.S. (I have made all the commands available in the commands.txt file).

{
  "$class": "org.ibm.coffee.Grower",
  "isFairTrade": true,
  "growerId": "Grower-0201",
  "organization": "Ethiopia Gedeb 1 Banko Gotiti GrainPro",
  "address": {
    "$class": "org.ibm.coffee.Address",
    "city": "Gedeb",
    "country": "Ethiopia",
    "street": "N/A",
    "zip": "N/A"
  }
}

Then click the blue Execute button under the request body. If all goes well, you should see something similar to the image below:

packageFile

If all went well, you can now go into your blockchain network, click on the channel, and then you should see the block height increased, and if you click on the last block, you should see the latest JSON that we inputted being written to the blockchain. Note: The gif shows how to get to your channel and transaction overview. Your transaction data should be different - it should show updating the ledger with the information of Grower-0201.



The rest of the commands for uploading supply chain documents can be found here.

Bonus Step - Deploy your local app to the Cloud

If you want to keep your application running all the time, you'll want to deploy it to the cloud.

To do this, please follow the guide here:

Conclusion

So yes! Go ahead and run the /POST transactions as shown in these steps, and everything will be stored on the IBM Blockchain Platform. So now, you are officially done with this tutorial. So what did you learn?

  • How to create a smart contract project with the IBM Blockchain VSCode extension.
  • How to deploy your smart contract on a local Hyperledger Fabric network.
  • How to update the ledger by submitting transactions to the network.
  • Hyperledger stores data as key-value pairs, so to look up data on the network, you need to pass in a key that has a value associated with it. We did that by running the query method.
  • How to create a Kubernetes Cluster and IBM Blockchain Platform V2 Beta service and to connect our client Loopback application to our cloud service via the connection profile we downloaded.
  • How to view the ledger of a specific channel, by clicking on the channel, the ledger, and then the individual transactions.

So at this point, you know more than me! Hopefully you feel pretty good at this point, and can dive a bit deeper into other, more complex topics, such as how to scale your network, how to optimize performance, etc. But for now, you know all of the basics to run a supply chain network on Hyperledger Fabric, both locally, and on the Cloud.

GREAT JOB! YOU DID IT! :)

And when you create the cool new startup unicorn after learning a bunch from this tutorial, don't forget to give me, or IBM Developer some credit :)

Troubleshooting

If you are getting errors with your IBM Blockchain VSCode extension, ensure you have all prerequisites installed here: https://github.com/IBM-Blockchain/blockchain-vscode-extension#requirements

Related Links

License

This code pattern is licensed under the Apache Software License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 (DCO) and the Apache Software License, Version 2.

Apache Software License (ASL) FAQ

blockchainbean2's People

Contributors

horeaporutiu avatar kant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blockchainbean2's Issues

Can't access web-app

Hello i'm really thankful for this tutorial, and forgive me because i'm complete beginner with this but i can't seems to access localhost:3000/explorer/ (i don't know which framework you're using in this project because it's not like angular or react for me). after running npm start on web-app, nothing after that and i still can't access the explorer.

I'm using this for my bachelor thesis so if you can help me i will really appreciate that

image

i'm running on macOS 10.13
npm 5.6
node 8.11.3
yo 2.0.5
docker 18.09.1
docker-compose 1.23.2

error: [Network]: _initializeInternalChannel: no suitable peers available to initialize from

I get a error message when trying to run node query.js from inside the web-app.
The smart contract is instantiated and running inside the Fabric n/w created using VsCode and the IBM Blockchain Extension.

Here is my local localConnection.json

{
    "name": "basic-network",
    "version": "1.0.0",
    "client": {
        "organization": "Org1",
        "connection": {
            "timeout": {
                "peer": {
                    "endorser": "300",
                    "eventHub": "300",
                    "eventReg": "300"
                },
                "orderer": "300"
            }
        }
    },
    "channels": {
        "mychannel": {
            "orderers": [
                "orderer.example.com"
            ],
            "peers": {
                "peer0.org1.example.com": {}
            }
        }
    },
    "organizations": {
        "Org1": {
            "mspid": "Org1MSP",
            "peers": [
                "peer0.org1.example.com"
            ],
            "certificateAuthorities": [
                "ca.org1.example.com"
            ]
        }
    },
    "orderers": {
        "orderer.example.com": {
            "url": "grpc://localhost:17050"
        }
    },
    "peers": {
        "peer0.org1.example.com": {
            "url": "grpc://localhost:17051",
            "eventUrl": "grpc://localhost:17053"
        }
    },
    "certificateAuthorities": {
        "ca.org1.example.com": {
            "url": "http://localhost:17054",
            "caName": "ca.example.com"
        }
    }
}

My cofig.json

{
  "connection_file": "localConnection.json",
  "appAdmin": "admin",
  "appAdminSecret": "adminpw",
  "orgMSPID": "org1msp",
  "caName": "ca.example.com",
  "userName": "user2",
  "gatewayDiscovery": { "enabled": true, "asLocalhost": true }
}

Any help will be much appreciated. Thx you.

Unable to set Orderer

The error I am getting is described on IBM's Troubleshooting page:

(https://cloud.ibm.com/docs/services/blockchain/howto?topic=blockchain-ibp-v2-troubleshooting#ibp-troubleshoot-ordering-service)

Great! So why am I creating an issue? Well, even after following all the steps suggested to fix it, I still have not managed to do so.

I've switched browsers, refreshed the cluster. Deleted the service and the cluster and tried again, multiple times.

Still getting the same "Unable to get system channel. If you associated an identity without administrative privilege on the ordering service node, you will not be able to view or manage ordering service details."

Any ideas?

IBM Cloud Kubernetes

Is there any alternative for ibm cloud kubernetes? i'm using blockchain IBM for my thesis so it doesn't really matter if i'm not using IBM blockchain. I don't have any access to credit card and so i can't create free trial on the cloud

image

Step 4. Install Contract -- fabric-peer do not start

Hello,

I tried to follow up your steps, however, on Step 4. I had a problem. When I would like to start the local fabric, the fabric-peer docker is crash. Output:

[2/20/2019 3:54:38 PM] [INFO] startFabricRuntime
[2/20/2019 3:54:38 PM] [INFO] # don't rewrite paths for Windows Git Bash users
[2/20/2019 3:54:38 PM] [INFO] export MSYS_NO_PATHCONV=1
[2/20/2019 3:54:38 PM] [INFO] docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb
[2/20/2019 3:54:38 PM] [INFO] fabricvscodelocalfabric_couchdb is up-to-date
[2/20/2019 3:54:38 PM] [INFO] fabricvscodelocalfabric_orderer.example.com is up-to-date
[2/20/2019 3:54:38 PM] [INFO] fabricvscodelocalfabric_ca.example.com is up-to-date
[2/20/2019 3:54:38 PM] [INFO] Starting fabricvscodelocalfabric_peer0.org1.example.com ...
[2/20/2019 3:54:38 PM] [INFO] Starting fabricvscodelocalfabric_peer0.org1.example.com
[2/20/2019 3:54:40 PM] [INFO] Starting fabricvscodelocalfabric_peer0.org1.example.com ... done
[2/20/2019 3:54:40 PM] [INFO] # wait for Hyperledger Fabric to start
[2/20/2019 3:54:40 PM] [INFO] # incase of errors when running later commands, issue export FABRIC_START_TIMEOUT=<larger number>
[2/20/2019 3:54:40 PM] [INFO] export FABRIC_START_TIMEOUT=30
[2/20/2019 3:54:40 PM] [INFO] for i in $(seq 1 ${FABRIC_START_TIMEOUT})
[2/20/2019 3:54:40 PM] [INFO] do
[2/20/2019 3:54:40 PM] [INFO]     # This command only works if the peer is up and running
[2/20/2019 3:54:40 PM] [INFO]     if docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/[email protected]/msp" ${COMPOSE_PROJECT_NAME}_peer0.org1.example.com peer channel list > /dev/null 2>&1
[2/20/2019 3:54:40 PM] [INFO]     then
[2/20/2019 3:54:40 PM] [INFO]         # Peer now available
[2/20/2019 3:54:40 PM] [INFO]         break
[2/20/2019 3:54:40 PM] [INFO]     else
[2/20/2019 3:54:40 PM] [INFO]         # Sleep and try again
[2/20/2019 3:54:40 PM] [INFO]         sleep 1
[2/20/2019 3:54:40 PM] [INFO]     fi
[2/20/2019 3:54:40 PM] [INFO] done
[2/20/2019 3:55:15 PM] [INFO] echo Hyperledger Fabric started in $i seconds
[2/20/2019 3:55:15 PM] [INFO] # Check to see if the channel already exists
[2/20/2019 3:55:15 PM] [INFO] if ! docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/[email protected]/msp" ${COMPOSE_PROJECT_NAME}_peer0.org1.example.com peer channel getinfo -c mychannel
[2/20/2019 3:55:15 PM] [INFO] then
[2/20/2019 3:55:15 PM] [INFO]     # Create the channel
[2/20/2019 3:55:15 PM] [INFO]     docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/[email protected]/msp" ${COMPOSE_PROJECT_NAME}_peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx
[2/20/2019 3:55:15 PM] [INFO]     # Join peer0.org1.example.com to the channel.
[2/20/2019 3:55:15 PM] [INFO]     docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/[email protected]/msp" ${COMPOSE_PROJECT_NAME}_peer0.org1.example.com peer channel join -b mychannel.block
[2/20/2019 3:55:15 PM] [INFO] fi
[2/20/2019 3:55:15 PM] [INFO] Hyperledger Fabric started in 30 seconds
[2/20/2019 3:55:15 PM] [INFO] Error response from daemon: Container 919d99396982bdcf8616a03380af14f62dbe4eccb6f67b315b531375a7335fb3 is not running
[2/20/2019 3:55:15 PM] [INFO] Error response from daemon: Container 919d99396982bdcf8616a03380af14f62dbe4eccb6f67b315b531375a7335fb3 is not running

The docker ps -a:

CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS                     PORTS                                         NAMES
919d99396982        hyperledger/fabric-peer:1.4.0       "peer node start"        4 minutes ago       Exited (2) 2 minutes ago                                                 fabricvscodelocalfabric_peer0.org1.example.com
54f8a3364ffa        hyperledger/fabric-couchdb:0.4.14   "tini -- /docker-entโ€ฆ"   35 minutes ago      Up 35 minutes              4369/tcp, 9100/tcp, 0.0.0.0:17055->5984/tcp   fabricvscodelocalfabric_couchdb
6210cb4299d4        hyperledger/fabric-orderer:1.4.0    "orderer"                35 minutes ago      Up 35 minutes              0.0.0.0:17050->7050/tcp                       fabricvscodelocalfabric_orderer.example.com
ea1953348262        hyperledger/fabric-ca:1.4.0         "sh -c 'fabric-ca-seโ€ฆ"   38 minutes ago      Up 38 minutes              0.0.0.0:17054->7054/tcp                       fabricvscodelocalfabric_ca.example.com

The docker logs fabricvscodelocalfabric_peer0.org1.example.com:

2019-02-20 15:54:40.546 UTC [nodeCmd] serve -> INFO 001 Starting peer:
 Version: 1.4.0
 Commit SHA: d700b43
 Go version: go1.11.1
 OS/Arch: linux/amd64
 Chaincode:
  Base Image Version: 0.4.14
  Base Docker Namespace: hyperledger
  Base Docker Label: org.hyperledger.fabric
  Docker Namespace: hyperledger
2019-02-20 15:54:40.551 UTC [ledgermgmt] initialize -> INFO 002 Initializing ledger mgmt
2019-02-20 15:54:40.551 UTC [kvledger] NewProvider -> INFO 003 Initializing ledger provider
2019-02-20 15:54:40.668 UTC [kvledger] NewProvider -> INFO 004 ledger provider Initialized
2019-02-20 15:54:40.817 UTC [ledgermgmt] initialize -> INFO 005 ledger mgmt initialized
2019-02-20 15:54:40.818 UTC [peer] func1 -> INFO 006 Auto-detected peer address: 172.22.0.5:7051
2019-02-20 15:54:40.818 UTC [peer] func1 -> INFO 007 Returning peer0.org1.example.com:7051
2019-02-20 15:54:40.818 UTC [peer] func1 -> INFO 008 Auto-detected peer address: 172.22.0.5:7051
2019-02-20 15:54:40.818 UTC [peer] func1 -> INFO 009 Returning peer0.org1.example.com:7051
2019-02-20 15:54:40.820 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00a Entering computeChaincodeEndpoint with peerHostname: peer0.org1.example.com
2019-02-20 15:54:40.820 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00b Exit with ccEndpoint: peer0.org1.example.com:7052
2019-02-20 15:54:40.820 UTC [nodeCmd] createChaincodeServer -> WARN 00c peer.chaincodeListenAddress is not set, using peer0.org1.example.com:7052
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7fe5b01a7259]

runtime stack:
runtime.throw(0x123f0ff, 0x2a)
        /opt/go/src/runtime/panic.go:608 +0x72
runtime.sigpanic()
        /opt/go/src/runtime/signal_unix.go:374 +0x2f2

goroutine 49 [syscall]:
runtime.cgocall(0xe1bdc0, 0xc0003e8600, 0x29)
        /opt/go/src/runtime/cgocall.go:128 +0x5e fp=0xc0003e85c8 sp=0xc0003e8590 pc=0x4039ee
net._C2func_getaddrinfo(0xc0003afa20, 0x0, 0xc000491d40, 0xc00000e478, 0x0, 0x0, 0x0)
        _cgo_gotypes.go:92 +0x55 fp=0xc0003e8600 sp=0xc0003e85c8 pc=0x615b95
net.cgoLookupIPCNAME.func1(0xc0003afa20, 0x0, 0xc000491d40, 0xc00000e478, 0x17, 0x17, 0x103e040)
        /opt/go/src/net/cgo_unix.go:149 +0x131 fp=0xc0003e8648 sp=0xc0003e8600 pc=0x61b2b1
net.cgoLookupIPCNAME(0xc0003af6a0, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /opt/go/src/net/cgo_unix.go:149 +0x153 fp=0xc0003e8738 sp=0xc0003e8648 pc=0x617153
net.cgoIPLookup(0xc0003d4e40, 0xc0003af6a0, 0x16)
        /opt/go/src/net/cgo_unix.go:201 +0x4d fp=0xc0003e87c8 sp=0xc0003e8738 pc=0x61780d
runtime.goexit()
        /opt/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0003e87d0 sp=0xc0003e87c8 pc=0x45dc81
created by net.cgoLookupIP
        /opt/go/src/net/cgo_unix.go:211 +0xad

goroutine 1 [select]:
net.(*Resolver).LookupIPAddr(0x1f2ccc0, 0x1380620, 0xc000046090, 0xc0003af6a0, 0x16, 0xc0003af6b7, 0x4, 0x1b8c, 0x0, 0x0)
        /opt/go/src/net/lookup.go:227 +0x55f
net.(*Resolver).internetAddrList(0x1f2ccc0, 0x1380620, 0xc000046090, 0x120a1ae, 0x3, 0xc0003af6a0, 0x1b, 0x0, 0x0, 0x0, ...)
        /opt/go/src/net/ipsock.go:279 +0x614
net.(*Resolver).resolveAddrList(0x1f2ccc0, 0x1380620, 0xc000046090, 0x120cfc8, 0x6, 0x120a1ae, 0x3, 0xc0003af6a0, 0x1b, 0x0, ...)
        /opt/go/src/net/dial.go:202 +0x4fb
net.(*ListenConfig).Listen(0xc00056d008, 0x1380620, 0xc000046090, 0x120a1ae, 0x3, 0xc0003af6a0, 0x1b, 0xc00034c600, 0x30, 0xc000352700, ...)
        /opt/go/src/net/dial.go:591 +0xaa
net.Listen(0x120a1ae, 0x3, 0xc0003af6a0, 0x1b, 0x40d1d8, 0x7fe5b4fed6c0, 0x0, 0x1)
        /opt/go/src/net/dial.go:674 +0x7e
github.com/hyperledger/fabric/core/comm.NewGRPCServer(0xc0003af6a0, 0x1b, 0x0, 0xc000188d80, 0xc00034c600, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /opt/gopath/src/github.com/hyperledger/fabric/core/comm/server.go:50 +0xd8
github.com/hyperledger/fabric/peer/node.createChaincodeServer(0x1378da0, 0xc00000e400, 0xc000042102, 0x16, 0x0, 0x1, 0x20, 0x2, 0xc00042fc80)
        /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:533 +0x482
github.com/hyperledger/fabric/peer/node.startChaincodeServer(0xc000042102, 0x16, 0x13650e0, 0xc000537420, 0xc00053a360, 0xc00053e400, 0x136bfa0, 0xc0004888a0, 0xc000457710, 0x2, ...)
        /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:731 +0x32f
github.com/hyperledger/fabric/peer/node.serve(0x1f51e20, 0x0, 0x0, 0x0, 0x0)
        /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:255 +0xd50
github.com/hyperledger/fabric/peer/node.glob..func1(0x1e3fbe0, 0x1f51e20, 0x0, 0x0, 0x0, 0x0)
        /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:119 +0x9c
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0x1e3fbe0, 0x1f51e20, 0x0, 0x0, 0x1e3fbe0, 0x1f51e20)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:762 +0x473
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1e40300, 0x8, 0x0, 0x1e3f4c0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x1e40300, 0xc0003f3f40, 0x1)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:800 +0x2b
main.main()
        /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:53 +0x2f7

goroutine 8 [syscall]:
os/signal.signal_recv(0x0)
        /opt/go/src/runtime/sigqueue.go:139 +0x9c
os/signal.loop()
        /opt/go/src/os/signal/signal_unix.go:23 +0x22
created by os/signal.init.0
        /opt/go/src/os/signal/signal_unix.go:29 +0x41

goroutine 20 [IO wait]:
internal/poll.runtime_pollWait(0x7fe5b0d7df00, 0x72, 0x0)
        /opt/go/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc0004efd98, 0x72, 0xc000118000, 0x0, 0x0)
        /opt/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc0004efd98, 0xffffffffffffff00, 0x0, 0x0)
        /opt/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Accept(0xc0004efd80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /opt/go/src/internal/poll/fd_unix.go:384 +0x1a0
net.(*netFD).accept(0xc0004efd80, 0x7fe5b4fed000, 0x0, 0xc00005aeb0)
        /opt/go/src/net/fd_unix.go:238 +0x42
net.(*TCPListener).accept(0xc00000e7b8, 0xc00005aeb8, 0x40d1d8, 0x30)
        /opt/go/src/net/tcpsock_posix.go:139 +0x2e
net.(*TCPListener).Accept(0xc00000e7b8, 0x11456e0, 0xc000393770, 0x1048300, 0x1e32170)
        /opt/go/src/net/tcpsock.go:260 +0x47
net/http.(*Server).Serve(0xc000463040, 0x137f620, 0xc00000e7b8, 0x0, 0x0)
        /opt/go/src/net/http/server.go:2826 +0x22f
created by github.com/hyperledger/fabric/core/operations.(*System).Start
        /opt/gopath/src/github.com/hyperledger/fabric/core/operations/system.go:121 +0x1a3

goroutine 21 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc0004867e0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 22 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e2b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 23 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e2b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 24 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e2b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 25 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e2b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 26 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc0004860e0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 27 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e2000)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 28 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e2000)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 29 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e2000)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 30 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e2000)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 31 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc0004861c0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 10 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e21a0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 11 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e21a0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 12 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e21a0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 13 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e21a0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 14 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc000486700)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 33 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e2d00)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 34 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e2d00)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 35 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e2d00)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 36 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e2d00)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 37 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc000486380)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 38 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e2ea0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 39 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e2ea0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 40 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e2ea0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 41 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e2ea0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 42 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc000486b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 15 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e3040)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 16 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e3040)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 50 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e3040)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 51 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e3040)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 60 [IO wait]:
internal/poll.runtime_pollWait(0x7fe5b0d7de30, 0x72, 0xc00044ea88)
        /opt/go/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc0004eee18, 0x72, 0xffffffffffffff00, 0x1369320, 0x1e62ed0)
        /opt/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc0004eee18, 0xc00057a000, 0x1000, 0x1000)
        /opt/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc0004eee00, 0xc00057a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        /opt/go/src/internal/poll/fd_unix.go:169 +0x179
net.(*netFD).Read(0xc0004eee00, 0xc00057a000, 0x1000, 0x1000, 0xc00044eb70, 0x45a870, 0xc000000300)
        /opt/go/src/net/fd_unix.go:202 +0x4f
net.(*conn).Read(0xc000122740, 0xc00057a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        /opt/go/src/net/net.go:177 +0x68
net/http.(*persistConn).Read(0xc000444000, 0xc00057a000, 0x1000, 0x1000, 0xc00044ec70, 0x405a35, 0xc0000908a0)
        /opt/go/src/net/http/transport.go:1497 +0x75
bufio.(*Reader).fill(0xc0001af2c0)
        /opt/go/src/bufio/bufio.go:100 +0x106
bufio.(*Reader).Peek(0xc0001af2c0, 0x1, 0x0, 0x0, 0x1, 0xc000090e40, 0x0)
        /opt/go/src/bufio/bufio.go:132 +0x3f
net/http.(*persistConn).readLoop(0xc000444000)
        /opt/go/src/net/http/transport.go:1645 +0x1a2
created by net/http.(*Transport).dialConn
        /opt/go/src/net/http/transport.go:1338 +0x941

goroutine 61 [select]:
net/http.(*persistConn).writeLoop(0xc000444000)
        /opt/go/src/net/http/transport.go:1885 +0x113
created by net/http.(*Transport).dialConn
        /opt/go/src/net/http/transport.go:1339 +0x966

goroutine 48 [select]:
net.cgoLookupIP(0x13805e0, 0xc0000837c0, 0xc0003af6a0, 0x16, 0x0, 0x11, 0xc000163850, 0xa, 0x0, 0x0)
        /opt/go/src/net/cgo_unix.go:212 +0x17b
net.(*Resolver).lookupIP(0x1f2ccc0, 0x13805e0, 0xc0000837c0, 0xc0003af6a0, 0x16, 0x0, 0xc00014a300, 0xc000082080, 0xc0000495c0, 0x103e040)
        /opt/go/src/net/lookup_unix.go:95 +0x166
net.(*Resolver).lookupIP-fm(0x13805e0, 0xc0000837c0, 0xc0003af6a0, 0x16, 0x42bd62, 0x8, 0xc000082080, 0x103e040, 0xc0003e86a0)
        /opt/go/src/net/lookup.go:207 +0x56
net.glob..func1(0x13805e0, 0xc0000837c0, 0xc0003d60f0, 0xc0003af6a0, 0x16, 0x7, 0xc000163872, 0x9, 0xc000163f2a, 0x6)
        /opt/go/src/net/hook.go:19 +0x52
net.(*Resolver).LookupIPAddr.func1(0x0, 0x0, 0x0, 0x0)
        /opt/go/src/net/lookup.go:221 +0xd8
internal/singleflight.(*Group).doCall(0x1f2ccd0, 0xc000455d60, 0xc0003af6a0, 0x16, 0xc000491cb0)
        /opt/go/src/internal/singleflight/singleflight.go:95 +0x2e
created by internal/singleflight.(*Group).DoChan
        /opt/go/src/internal/singleflight/singleflight.go:88 +0x2a0

goroutine 66 [runnable]:
net/http.setRequestCancel.func3(0x0, 0xc0003cbad0, 0xc0004dedc0, 0xc0005387b8, 0xc000090de0)
        /opt/go/src/net/http/client.go:321 +0xcf
created by net/http.setRequestCancel
        /opt/go/src/net/http/client.go:320 +0x24e

OS: freshly installed Ubuntu 18.04.1 LTS.

Cannot find module 'fabric-contract-api' or its corresponding type declarations

I am a complete newbie to the development and Blockchain tech. Need help in the below issue
Getting an error for Smart Contract as "Cannot find module 'fabric-contract-api' or its corresponding type declarations".
When I opened the command prompt and tried to runt eh query to install the Fabric-Conract api : "npm install --save fabric-contract-api" , there is an erros saying the node and NMP versions are outdated.

image

However, when I was installing the tools for the IBM Blockchain Platform it specifically asked for NODEversion to be 10X and NMP version to be 6.X. Please help here, if I need to upgrade the Node and NPM version or I am using a wrong NPM installation command.

Also, getting an error for Buffer keyword in 2 instances.
Cannot find name 'Buffer'. Did you mean 'buffer'?ts(2552)
my-asset-contract.ts(26, 15): 'buffer' is declared here.

Issue with web-app installation

Hi Horea,
thank you for this wonderful guide. I have been following step-by-step and it's been a good learning experience for my project thus far. However I have trouble with every npm installation like web-app or server, this always pops up. Do you happen to know why?
image
installing the server from the server terminal later on also gives me errors
image
Your help will be greatly appreciated! Thank you.
Best Regards,
Anabelle Chan

Error TS2307: Cannot find module 'fabric-shim'.

Hi, I am relatively new to blockchain. Trying to set up the project but getting an error TS2307: Cannot find module 'fabric-shim'.

node_modules/fabric-contract-api/types/index.d.ts:10:51 - error TS2307: Cannot find module 'fabric-shim'
10 import { ChaincodeStub, ClientIdentity } from 'fabric-shim';

Any help would be appreciated. Thanks in advance!

Deploy on basic network

Can you please show how to deploy the contract on a "basic-network" found on Hyperledger's fabric-samples?

Would like to try this out on this instead of "local fabric" generated by Visual Studio.

Thanks.

verifyArguments: Transaction arguments must be strings

When adding a model with a property that is not a string (ex: number) I am getting back:

verifyArguments: Transaction arguments must be strings:

Is it possible to modify this to allow different data types or is there a reason for only allowing strings?

npm install is the answer! run npm install in that directory!

npm install is the answer! run npm install in that directory!

Originally posted by @horeaporutiu in #10 (comment)

I had got below error then I tried npm install in that directory which gave error as well which npm install is working in root directory. Kindly help me.

======================================================
arti@artipc:~/workdir/VSCodeLocalNetwork$ node addIdentity.js
module.js:550
throw err;
^

Error: Cannot find module 'fabric-network'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/home/arti/workdir/VSCodeLocalNetwork/addIdentity.js:5:47)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)

==================================

arti@artipc:~/workdir/VSCodeLocalNetwork$ npm install

npm WARN tar ENOENT: no such file or directory, open '/home/arti/workdir/VSCodeLocalNetwork/node_modules/.staging/sjcl-056c9198/test/sha512_test_long_messages.js'
npm WARN tar ENOENT: no such file or directory, open '/home/arti/workdir/VSCodeLocalNetwork/node_modules/.staging/sjcl-056c9198/test/cbc_vectors.js'
npm WARN tar ENOENT: no such file or directory, open '/home/arti/workdir/VSCodeLocalNetwork/node_modules/.staging/sjcl-056c9198/test/sha512_vectors.js'
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/har-validator/-/har-validator-5.1.2.tgz
npm ERR! 404
npm ERR! 404 '[email protected]' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'VSCodeLocalNetwork'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/arti/.npm/_logs/2019-07-16T18_31_12_401Z-debug.log

CrashLoopBackOff

1.Openshift Cluster (4.6) was installed with Assissted Bare Metal Installer (3 Master and 2 Workers)
2.IBM Blockchain Platform (2.5.1.) was setup manually
3.While building network on IBM Blockchain Platform, in the very first step creating LobiCA (Certificate Authority), I got Pod Error
"CrashLoopBackOff"
4.Log File

2020/11/13 22:07:23 [INFO] Configuration file location: /data/ca/fabric-ca-server-config.yaml
2020/11/13 22:07:24 [INFO] Starting server in home directory: /data/ca
2020/11/13 22:07:24 [INFO] Server Version: 1.4.9
2020/11/13 22:07:24 [INFO] Server Levels: &{Identity:2 Affiliation:1 Certificate:1 Credential:1 RAInfo:1 Nonce:1}
2020/11/13 22:07:24 [INFO] Loading CA from /data/tlsca/fabric-ca-server-config.yaml
2020/11/13 22:07:24 [INFO] The CA key and certificate files already exist
2020/11/13 22:07:24 [INFO] Key file location: /crypto/tlsca/key.pem
2020/11/13 22:07:24 [INFO] Certificate file location: /crypto/tlsca/cert.pem
2020/11/13 22:07:24 [ERROR] Error occurred initializing database: Error encountered while committing transaction: disk I/O error
2020/11/13 22:07:24 [INFO] The CA key and certificate files already exist
2020/11/13 22:07:24 [INFO] Key file location: /crypto/ca/key.pem
2020/11/13 22:07:24 [INFO] Certificate file location: /crypto/ca/cert.pem
2020/11/13 22:07:24 [ERROR] Error occurred initializing database: Error encountered while committing transaction: disk I/O error
2020/11/13 22:07:24 [INFO] Home directory for default CA: /data/ca
2020/11/13 22:07:24 [INFO] Operation Server Listening on [::]:9443
2020/11/13 22:07:24 [INFO] Listening on https://0.0.0.0:7054

error TS5056: Cannot write file '/home/tony/blockchainbean2/web-app/dist/src/datasources/db.datasource.d.ts' because it would be overwritten by multiple input files.

hey, this is happende after
Add Members to the network
Let's bring up a new terminal window, and in that terminal, go to the blockchainbean2 directory that we cloned earlier, and start the app in that window with the following command.

blockchainbean2$ cd web-app
web-app$ npm start

~/blockchainbean2/web-app$ npm start

[email protected] prestart /home/tony/blockchainbean2/web-app
npm run build

[email protected] build /home/tony/blockchainbean2/web-app
lb-tsc es2017 --outDir dist

error TS5056: Cannot write file '/home/tony/blockchainbean2/web-app/dist/src/datasources/db.datasource.d.ts' because it would be overwritten by multiple input files.

Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: lb-tsc es2017 --outDir dist
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/tony/.npm/_logs/2019-12-05T17_54_25_976Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prestart: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prestart script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/tony/.npm/_logs/2019-12-05T17_54_25_983Z-debug.log

enrollAdmin.js

when i wrote "node enrollAdmin.js", i got that message
Please Help me
Failed to enroll admin user app-admin: TypeError: FileSystemWallet is not a constructor

Error while starting local fabric

Hello,
On step 4 i had a problem.When i tried to start fabric run time (local) it shown the error:
"Failed to execute command "/bin/sh" with arguments "start.sh" return code 1".

[18/3/2019 9:01:46 PM] [IMPORTANT] Log files can be found by running the Developer: Open Logs Folder command from the palette

[18/3/2019 9:01:46 PM] [INFO] Starting IBM Blockchain Platform Extension
[18/3/2019 9:01:46 PM] [INFO] Ensuring local runtime exists in runtime manager
[18/3/2019 9:01:46 PM] [INFO] Registering commands
[18/3/2019 9:01:46 PM] [INFO] IBM Blockchain Platform Extension activated
[18/3/2019 9:01:52 PM] [INFO] packageSmartContract
[18/3/2019 9:01:58 PM] [ERROR] Error: Package with name and version already exists. Please change the name and/or the version of the project in your package.json file.
[18/3/2019 9:03:18 PM] [INFO] startFabricRuntime
[18/3/2019 9:03:18 PM] [INFO] # don't rewrite paths for Windows Git Bash users
[18/3/2019 9:03:18 PM] [INFO] export MSYS_NO_PATHCONV=1
[18/3/2019 9:03:18 PM] [INFO] docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb logs
[18/3/2019 9:03:18 PM] [INFO] Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
[18/3/2019 9:03:18 PM] [INFO] If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
[18/3/2019 9:03:52 PM] [INFO] startFabricRuntime
[18/3/2019 9:03:52 PM] [INFO] # don't rewrite paths for Windows Git Bash users
[18/3/2019 9:03:52 PM] [INFO] export MSYS_NO_PATHCONV=1
[18/3/2019 9:03:52 PM] [INFO] docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb logs
[18/3/2019 9:03:52 PM] [INFO] Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
[18/3/2019 9:03:52 PM] [INFO] If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

'lb-tsc' is not recognized as an internal or external command

I am getting the error if I run npm start in web-app folder
`

[email protected] build C:\Users\sharif\Documents\chaincode-workspace\blockchainbean2\web-app
lb-tsc es2017 --outDir dist

'lb-tsc' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: lb-tsc es2017 --outDir dist
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sharif\AppData\Roaming\npm-cache_logs\2019-05-07T06_22_00_742Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prestart: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prestart script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sharif\AppData\Roaming\npm-cache_logs\2019-05-07T06_22_00_808Z-debug.log`

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.