Deploy a smart contract on the IBM Blockchain Platform running on OpenShift
The network and its components can be deployed on IBM Cloud, Azure, AWS, or Google Cloud
Blockchain is not only about cutting out the middleman and being able to transact on a network directly with your peers but also about having nodes in multiple locations such that the network cannot be compromised through a single point of failure. Decentralization is one of the most important aspects of blockchain. The more decentralized your network is, the harder it is to bring your network down or manipulate it maliciously. Through the power of Kubernetes — specifically, the Red Hat® OpenShift® platform — the IBM Blockchain Platform is now more decentralized than ever. It can easily be deployed on all of the major cloud providers, on your own hardware, or a combination of the two.
With IBM Blockchain Platform 2.1.0, you now have the flexibility to deploy components on the cloud of your choice — whether that is IBM Cloud, Azure, AWS, or Google Cloud. You can also get the same functionality with the original IBM Blockchain Platform, consistently, across different clouds, whether that is public, private, or even hybrid. Moreover, you can deploy the IBM Blockchain Platform on any x86_64 architecture that is supported by OpenShift 3.11 and meets the system and environment requirements. From there, you can import components from other networks, onboard other organizations to your current channel, and easily expand your network.
When you have completed this code pattern, you will have learned to:
- Create and log into an OpenShift cluster.
- Create a new project and add security and access policies.
- Deploy and log into the IBM Blockchain console.
- Deploy a smart contract and run transactions on the IBM Blockchain Platform running on OpenShift.
- The blockchain operator purchases an entitlement to the IBM Blockchain Platform V2.1.0.
- The blockchain operator deploys the IBM Blockchain Platform (which is running the latest Hyperledger Fabric version) onto a Red Hat OpenShift cluster. The operator creates a network onto the IBM Blockchain platform, eventually installing and instantiating the FabCar smart contract on the network.
- The Node.js application server uses the Fabric SDK to interact with the deployed network on IBM Blockchain Platform and creates APIs for a web client.
- The Angular client uses the Node.js Fabric SDK to interact with the network.
- The user interacts with the FabCar Angular web application to update and query the blockchain state.
Ready to get started? Find the detailed steps for this pattern in the README.
- Order IBM Blockchain Platform V2.1.0.
- Create an OpenShift cluster.
- Add security and access policies to your project.
- Create a secret for your entitlement key.
- Deploy and log into the IBM Blockchain Platform console.
- Build networks.
- Install and instantiate FabCar smart contract.
- Register a user for our client app.
- Update the config file.
- Start the app.
- Submit and check transactions.