By: Arman Avetisyan
Sr. SAP Basis/BI & Software Developer
over the last few years, SAP has started to develop their cloud platform, which allows customers to use services such as HANA Database, Virtual Machines, Big Data, IoT, Blockchain, and more in the cloud.
SCP Virtual Machines come with pre-installed SUSE Linux Enterprise 12 and allow us to develop large web applications with all programming languages and frameworks, without any restrictions.
SAP’s Hyperledger Fabric Service is a private blockchain which we can work with through REST API. We simply need to use different programming languages such as Python, PHP, JAVA, etc.
In this tutorial, we are going to learn how to use Blockchain (Hyperledger Fabric) service and Virtual Machines to develop large web application which will include an online wallet feature.
Before moving forward I’d like to mention that instead of setting up a web application you can also use basic python script to work with blockchain through the REST API. I’ve personally used Django web framework to show how far we can go with SAP Cloud Platform VM’s.
Let's dive into the tutorial. To begin, I'll show you how to run Python Django Web Applications on SAP Cloud Platform VM (this will be a quick overview).
Please note: If you do not want to setup a web application, you can skip this step and download the full how-to guide at the bottom of this page to see the rest of the process.
Technologies being used during this tutorial:
- Blockchain – SAP Hyperledger Fabric
- Chaincode (Smart Contracts) language – Go
- Web Framework – Python Django
- OS – SUSE Enterprise 12
To run the web application with Python Django we will implement following steps:
- Create “New Virtual Machine” form SAP Cloud Platform’s Virtual Machines page:
Here's a helpful video guide on how to perform this step: watch video now
If you prefer, you can also use command line tools to accomplish this. Follow these steps:
- Use SAP Cloud Connector to connect your On-Premise to Virtual Machine
You can learn more about cloud connector from this link.
- Install Python
- Install Apache 2.4
- Install mod_wsgi
- Run the project
- Create an app with the name “Wallet” where we will write our python code:
After you've completed the above steps, you'll be ready to move to the following steps:
- Set up and run Hyperledger Fabric Service in the SAP Cloud Platform
- Manage wallet-to-wallet token transfers with Python
To get detailed directions on how to perform these critical next steps, download our full how-to below.
Download the full guide and you'll learn how to:
- Setup and run Hyperledger Fabric Service in SAP Cloud Platform (Step by Step)
- Manage wallet-to-wallet token transfers with Python.