Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.72 KB

host_marbles_locally.md

File metadata and controls

42 lines (27 loc) · 1.72 KB

Host Marbles Locally:

Run Marbles

Finally lets install marble's npm dependencies.

  1. Open a command prompt/terminal and navigate to the marbles directory.

  2. In the command prompt/terminal type:

     > npm install gulp -g
     > npm install
    
  3. Almost there! -If you are using a local network use this command: > gulp marbles3

    • If you are using a bluemix network, use this command:

      gulp marbles1

  4. If all goes well you should see this message in the console:

  1. Go to your browser at the url specified in the console and login. You do not need to enter a password or change the prefilled username of admin.

  1. Next the settuping up panel should pop up. Ideally it will walk itself through the 3 stages of initial setup.
    1. Enroll Admin - this step is communicating with your network's CA to verify the admin user credentails (enrollID/enrollSecret)
      • If it fails double check the enrollID and enrollSecret fields in your blockchain_creds1.json file
    2. Finding Chaincode - this step is looking for the marbles chaincode on your peer. It is using the chaincode ID found in your blockchain_creds1.json file. If this is a brand new network it will not exist yet.
      • If the chaincode was instantiated but it was unable to find it try the "Retry" button.
    3. Register Marble Owners - this step will create the marble owners you specificed in the blockchain_creds1.json file
      • This can take awhile 1-2minutes. Check your console logs for progress.

  1. Once you see this message you are good to go:

  1. Marbles is all setup! Now continue the tutorial.