• Global BI Experts
  • Call (888) 556 5990
Posted on August 22, 2018 under Blockchain, Cloud

By: Arman Avetisyan
Sr. SAP Basis/BI & Software Developer
aavetisyan@comerit.com

 

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:

  1. Blockchain – SAP Hyperledger Fabric
  2. Chaincode (Smart Contracts) language – Go
  3. Web Framework – Python Django
  4. OS – SUSE Enterprise 12

 Blockchain in SAP Cloud_Comerit

 

To run the web application with Python Django we will implement following steps:

  1. Create “New Virtual Machine” form SAP Cloud Platform’s Virtual Machines page:

Blockchain in SAP Cloud_Comerit

 


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:

  1. Use SAP Cloud Connector to connect your On-Premise to Virtual Machine
    You can learn more about cloud connector from this link.
  2. Install Python
  3. Install Apache 2.4
  4. Install mod_wsgi
  5. Run the project

  1. Create an app with the name “Wallet” where we will write our python code:

 Blockchain in SAP Cloud_Comerit

 

 After you've completed the above steps, you'll be ready to move to the following steps:

  1. Set up and run Hyperledger Fabric Service in the SAP Cloud Platform
  2. 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.

      DOWNLOAD THE GUIDE

 

 

Aug 22, 2018 2:49:44 PM / by Arman Avetisyan

Arman Avetisyan

Written by Arman Avetisyan

Arman is an experienced SAP BI, Big Data, and software developer whose combined development and SAP skills allows him to offer unique value to his clients. Comerit has been proud to have Arman as a part of our team since 2015.

SAP blog

Want more content like this? Make sure to drop your email below and you'll get updated each month about our latest blogs and think-pieces.

 

Sign up for updates

Recent Posts