Have a look at the terminology to understand the basic concepts first.
Following the setup guideline to start a Cello cluster.
After that, operators can interact with Cello through the operator dashboard.
By default, the operator dashboard will listen on port 8080
at the Master Node, with default administrator account of admin:pass
.
The first time to open the operator dashboard, there will be no hosts. There are two methods to add more hosts into the pool.
Overview
page: Click the +
button after the Working Hosts
;Hosts
page: Click the Add Host
button at the top right corner.Then you will see a jumped-out dialog to input the setup info according to the chosen type.
Suppose to import a native Docker server, you may need to input those fields
192.168.7.220:2375
(replace this with your docker host address)INFO
, NOTICE
,WARNING
,ERROR
,CRITICAL
After successful adding, you can find the docker_host
shown in the Host page, with 0 chains and Cap is 5.
If you are going to create vSphere type host, you can take the steps at the vSphere type host creation guide.
If you are going to create Kubernetes type host, you can take the steps at the Kubernetes type host creation guide.
Now we have the free host in the pool, new chains can be create.
Open the Active Chain page, it should be empty now, click the Add Chain
button on the top right corner, input those fields:
And select the host with the docker_host
.
Click the create button to add a new chain with name test_chain
into the pool.
Then you can see it at the Active Chain page.
It will be difficult if you have a numbers of chains to create manually. Cello provides automated ways to save time.
Keep filled with cluster
checkbox, which will automatically watch the host and keep it full with chains to the capacity.Try these methods as you like.
By default, the user dashboard will listen on port 8081
at the Master Node, and operators can login in with default admin:pass
credential. Or you can change to "sign up" to create a new account.
Click "Apply Now" to apply a new blockchain. Fill the "Name" field as the chain name, and select "Fabric" for the chain type. Then there will show one Fabric - Advance Config for configurations, keep selecting as default configuration, then click Submit button to request a new blockchain.
By default, there are two smart contracts examples available. You can add a new smart contract by uploading your local smart contracts file.
This chaincode implements a simple map that is stored in the state.
The following invoke functions are available.
One query function:
In this example, we use Init to configure the initial state of variables on the ledger. The example accepts 4 parameters as input and writes validated values on ledger.
The following operations are available.
Click "..." of "fabric-chaincode_example02" smart contract, and select "Install". In the popup window select your chain where you want to install the smart contract.
After the smart contract installed, click "Instantiate" to deploy the smart contract. In the popup window select your chain where you want to initiate the smart contract. and click "New Parameter" to add four parameters, for example: "a", "1000", "b", "2000".
In the 'Invoke' page, you can perform the contract call as the following.
fabric-example02
invoke
a
, b
, 100
Invoke
Then we query the current value of a
, which should be 900 now
If you want to know more advanced operational skills, please continue to the Operator Dashboard.
If you want to know more usage of chains and smart contracts, please continue to the User Dashboard.
This work is licensed under a Creative Commons Attribution 4.0 International License.