IBM-Blockchain-Archive / marbles

WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode.
Apache License 2.0
1.03k stars 979 forks source link

marbles 3.0 local instructions #109

Closed luofeifei closed 7 years ago

luofeifei commented 7 years ago

Hi, I'm hosting the chaincode in locally , would you please tell me the time of following instructions ? thanks

  1. Get a Network Update: local instructions are a work in progress
  2. Install and Instantiate Chaincode Install chaincode with the SDK locally
nickgaski commented 7 years ago

@luofeifei - follow these instructions and see if you can get the app launched. http://fabric-rtd.readthedocs.io/en/latest/marbles.html

ravengit commented 7 years ago

That's great. Thanks @nickgaski for posting the link!

ravengit commented 7 years ago

Just followed the doc. It works well and marbles v3 is running in my local environment. Thanks!

thinkahead commented 7 years ago

Worked for me. I used the v1.0.0-alpha.1 of fabric-sdk-node and master branch of marbles.v3

marbles.v3/config/blockchain_creds1.json

{
    "credentials": {
        "network_id": "Marbles",
        "orderers": [
            {   
                "discovery": "grpc://localhost:7050",
                "msp_id": "Org1MSP",
                "tls_certificate": "cert_1"
            }   
        ],  
        "cas": [
            {   
                "api": "http://localhost:7054",
                "msp_id": "Org1MSP",
                "users": [
                    {   
                        "enrollId": "admin",
                        "enrollSecret": "adminpw"
                    }   
                ],  
                "tls_certificate": "cert_1"
            }   
        ],  
        "peers": [
            {   
                "name": "fabric-peer-1a",
                "discovery": "grpc://localhost:7051",
                "events": "grpc://localhost:7053",
                "msp_id": "Org1MSP",
                "tls_certificate": "cert_1"
            }   
        ],  
        "app": {
            "channel_id": "mychannel",
            "chaincode_id": "end2end",
            "chaincode_version": "v1",
            "block_delay": 1000
        },  
        "tls_certificates": {
            "cert_1": {

                "common_name": null,
                "pem": "../../../../../Users/thinkahead/Hyperledger/fabric-sdk-node/test/fixtures/channel/crypto-config/ordererOrganizations/ordererOrg1/orderers/ordererOrg1orderer1/cacerts/ordererOrg1-cert.pem"
            }
        }
    }
}