Running the ESPM Twitter Integration sample app on SAP Cloud Platform

Similar documents
EUSurvey OSS Installation Guide

BUILD AND DEPLOY SOA PROJECTS FROM DEVELOPER CLOUD SERVICE TO ORACLE SOA CLOUD SERVICE

Import Data Connection from an SAP Universe

Red Hat JBoss Fuse 7.0-TP

Create Import Data Connection to SAP BPC MS

Red Hat Fuse 7.1 Fuse Online Sample Integration Tutorials

Import Data Connection to an SAP ERP System

Perceptive Matching Engine

BUILD AND DEPLOY ORACLE SERVICE BUS PROJECTS FROM ORACLE DEVELOPER CLOUD SERVICE TO ORACLE SOA CLOUD SERVICE USING THE ORACLE SERVICE BUS PLUG-IN

Red Hat Fuse 7.2 Fuse Online Sample Integration Tutorials

Sticky Notes for Cognos Analytics by Tech Data BSP Software

SAP HANA Cloud End-to-End-Development Scenarios. ESPM Mobile Shopping Scenario. Version 3.0

EUSurvey Installation Guide

Import Data Connection to an SAP BW System

Getting Started Guide

Making a POST Request Using Informatica Cloud REST API Connector

Living Systems Process Suite. Installation. Living Systems Process Suite Documentation. 3.1 Thu Nov

Live Data Connection to SAP Universes

PowerExchange for Facebook: How to Configure Open Authentication using the OAuth Utility

Create Import Data Connection to SAP BPC NW

Developing Android applications in Windows

Grandstream Networks, Inc. Captive Portal Authentication via Twitter

EGit/Gerrit Hands-on training #1: Installation and Configuration

SAP NW CLOUD HANDS-ON WORKSHOP

CUSTOMER SAP Customer Checkout Server Guide

IBM. IBM WebSphere Application Server Migration Toolkit. WebSphere Application Server. Version 9.0 Release

BlueMix Hands-On Workshop Lab A - Building and Deploying BlueMix Applications

Oracle Code Day Hands On Labs HOL

Sample Spark Web-App. Overview. Prerequisites

Introduction to Kony Fabric

Setting Up the Development Environment

vsphere Web Client SDK Documentation VMware vsphere Web Client SDK VMware ESXi vcenter Server 6.5.1

Contents. Anaplan Connector for MuleSoft

Document Integration Automation for HCM Cloud One-click Solution for Document Upload to Oracle HCM Cloud

Installation Guide - Mac

Oracle Code Day Hands On Labs (HOL) (Install, Repository, Local Deploy, DevCS, OACCS)

Installation Guide - Windows

IBM Maximo Anywhere Version 7 Release 6. Planning, installation, and deployment IBM

Beginners Guide to Lazada Open Platform

Supported Operating Environment. Java Support

Adobe Marketing Cloud Bloodhound for Mac 3.0

Purpose. Why use Java? Installing the Software. Java

i2b2 Workbench Developer s Guide: Eclipse Neon & i2b2 Source Code

Excel4apps Wands 5 Architecture Excel4apps Inc.

TIBCO Jaspersoft running in AWS accessing a back office Oracle database via JDBC with Progress DataDirect Cloud.

IBM Maximo Anywhere Version 7 Release 6. Planning, installation, and deployment IBM

Informatica Cloud Platform Building Connectors with the Toolkit Student Lab: Prerequisite Installations. Version Connectors Toolkit Training

Getting Started with. Lite.

Participant Handbook

Real-Time Dashboard Integration Bomgar Remote Support

JDK-WildFly-NetBeans Setup Local

Installation Guide - Mac

3. Optionally, if you want to use the new Web SSO feature, complete the steps in Adding Web Single Sign-On Functionality.

Monroe Township High School AP Computer Science A Summer Packet

Image Recognition. SDK Reference. Issue 09 Date HUAWEI TECHNOLOGIES CO., LTD.

Using SourceTree on the Development Server

Guide to add as trusted site in Java 8 Update 51. Version of 24 OCBC Bank. All Rights Reserved

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

How to utilize the CM-9 source

10.1 Getting Started with Container and Cloud-based Development

How-to Connect your HANA Cloud Platform Mobile Service Account to your On-Premise OData Service

Developing and Deploying vsphere Solutions, vservices, and ESX Agents

Perceptive TransForm E-Forms Manager 8.x. Installation and Configuration Guide March 1, 2012

SVN_Eclipse_at_home. 1. Download Eclipse. a. Go to: and select Eclipse IDE for Java Developers

Contents. Introducing Collibra Connect 1. About Collibra Connect 2. Collibra Connect deployment 2. Installing Collibra Connect 5

Red Hat Decision Manager 7.0

Deploying the Cisco Tetration Analytics Virtual Appliance in Microsoft Azure

How to Register for a Developer Account Nick V. Flor

Index. Symbols. /**, symbol, 73 >> symbol, 21

ActiveSpaces Transactions. Quick Start Guide. Software Release Published May 25, 2015

Contents Overview... 5 Downloading Primavera Gateway... 5 Primavera Gateway On-Premises Installation Prerequisites... 6

Getting Started with Cisco UCS Director Open Automation

Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras

Developing and Deploying vsphere Solutions, vservices, and ESX Agents

Test Automation Integration with Test Management QAComplete

Optical Character Recognition. SDK Reference. Issue 04 Date

01/02/2016 gowtham informatica reference.blogspot.in/2013/05/informatica server installation and.html

Integration Guide. LoginTC

Publishing and Subscribing to Cloud Applications with Data Integration Hub

Perceptive Connect Runtime

2 Oracle WebLogic Overview Prerequisites Baseline Architecture...6

Supported 3rd Party Authentication Providers for Odyssys

System Installation Guide

Build an App From a SAP Web IDE Template. Page 1/26

Oracle Cloud Using the Trello Adapter. Release 17.3

Test Automation Integration with Test Management QAComplete

SAP NetWeaver Cloud Security Tutorial Single Sign-On and Identity Federation with SAP NetWeaver Single Sign-On

REST API Operations. 8.0 Release. 12/1/2015 Version 8.0.0

Mission Guide: Dropbox

SAM4S Receipt Printer JPOS Driver. Mac OS X Installation Manual

McMaster Service-Based ehealth Integration Environment (MACSeie) Installation Guide July 24, 2009

Red Hat Developer Studio 12.0

How To Get Database Schema In Java Using >>>CLICK HERE<<<

Welcome to the e-learning course for SAP Business One Analytics Powered by SAP HANA: Installation and Licensing. This course is valid for release

Installation Guide - Mac

Introduction... 5 Configuring Single Sign-On... 7 Prerequisites for Configuring Single Sign-On... 7 Installing Oracle HTTP Server...

Integration Workbook

SAP NetWeaver Cloud Security Tutorial Single Sign-On and Identity Federation with ForgeRock OpenAM

Developing and Deploying vsphere Solutions, vservices, and ESX Agents. 17 APR 2018 vsphere Web Services SDK 6.7 vcenter Server 6.7 VMware ESXi 6.

Getting Started with Eclipse/Java

Transcription:

Running the ESPM Twitter Integration sample app on SAP Cloud Platform By Daniel Gomes da Silva Learn how to download, build, deploy, configure and run the ESPM Twitter Integration JAVA sample app on SAP Cloud Platform You will learn This cool sample app will show you how to integrate Twitter to your Java app. It uses Twitter for OAuth authorization and show how to call a Twitter API to publish a tweet from your app. Tags Intermediate Java Cloud SAP Cloud Platform Prerequisites Basic knowledge about JAVA and OAuth authentication. Oracle Java SE Development Kit (JDK) 8 Eclipse Neon SAP Development Tools for Eclipse SAP Cloud Platform Neo Environment SDK, Java Web Tomcat 8 Set Up the Runtime Environment in Eclipse, Java Web Tomcat 8 Runtime Sign up for a free trial account on SAP Cloud Platform

Details In this app, customers log in using Twitter as OAuth authorizer. Using Twitter ID, they can shop and tweet about the products they bought. These are the steps to download, build, deploy, configure and run our Twitter Integration app. Step 1: Create ESPM Application in Twitter 1. Register ESPM Web Shop application in the developer or API portion of Twitter website (https://apps.twitter.com) by clicking on Create New App. 2. Enter the Application Name (for example: Twitter_Integration), Description, Website (for example: https://www.sap.com), Callback URL (for example: https://www.sap.com), then click on Create your Twitter Application button. Note: We need to set a sample callback URL to retrieve the Request Token and get the Access Token with OAuth_verifier parameter, which will be added to the actual callback URL in the application upon successful login. 3. Click on Keys and Access Tokens tab, then take note of Consumer Key and Consumer Secret key.

Step 2: Configuring Maven in Eclipse 1. in Eclipse, click on menu Window > Preferences if you are on Windows, or press Command +, if you are on Mac. 2. Navigate to Maven > User Settings. 3. Click on Open file under User Settings. If you do not have one, create the file /Users/your-user-name/.m2/settings.xml. 4. The contents of the settings.xml file should look like the snippet below. <settings xmlns="http://maven.apache.org/settings/1.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/settings/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localrepository>${user.home}/.m2/repository</localrepository> <profiles> <profile> </profile> <id>development</id> <activation> </activation> <properties> </properties> <activebydefault>true</activebydefault>

</profiles> <proxies> <proxy> <active>true</active> <protocol>http</protocol> <host>proxy</host> <port>8080</port> </settings> </proxies> </proxy> Note: For most people, the proxy value does not need to be set, so you can remove the entire proxy section from the snippet, but if you are working behind a proxy, then it should be set as per your environment.

Step 3: Configuring Git in Eclipse 1. in Eclipse, click on menu Window > Preferences if you are on Windows, or press Command +, if you are on Mac. 2. Navigate to Team > Git > Configuration. 3. Add the following configuration: Note: For most people, the proxy value does not need to be set, but if you are working behind a proxy, then it should be set as per your environment.

Step 4: Cloning Git repository and importing Maven project 1. Open https://github.com/sap/cloud-espm-v2/tree/twitter_integration with your web browser. 2. Click on Clone or download, then on Copy to clipboard icon. 3. In Eclipse, go to menu Window > Perspective > Open Perspective > Other. 4. Select Git and press OK.

5. In Git Repositories box, you will see three links. Click on the Clone a Git repository link. 6. Because you copied before the project repository URL to your clipboard, the fields of the opened dialog are filled automatically with the correct values. So do not change anything, just click on Next >.

7. Select only the Twitter_Integration branch, then press Next >.

8. On the last wizard page you can adjust the location of the local Git Repository, but for the scope of this tutorial we will just leave the default as-is. Copy the path and click on Finish. 9. Go to menu File > Import > Maven > Existing Maven Projects.

10. Paste the path of your downloaded project. 11. Click on Finish.

Step 5: Building the Maven project 1. In Eclipse, go to menu Window > Perspective > Open Perspective > Other. 2. Select Java EE and press OK. 3. In the Project Explorer window, right click on espm project folder and choose Maven> Update Project.

4. Press OK and wait until the update is finished.

5. In the Project Explorer window, right click on espm project folder and choose Run As> Maven build. 6. In the goals field, write clean install, then click on Run.

7. In the console window, you should have a BUILD SUCCESS info. 8. Update your project again like on step 3.

Step 6: Deploying the application on SAP SCP via the cockpit 1. Log in to SCP on your trial account, then click on Applications > Java Application > Deploy Application. 2. Set the fields as described below, then click on Deploy. Field Name Value War File Location <Your_Project_Folder>/espm-cloud-web/target/espmcloud-web.war Application Name espm Runtime Name Java Web Tomcat 8 JVM Version JRE 8

3. Wait until the deploy process is finished, but do not start the app yet.

Step 7: Setting up Destination for Twitter Integration 1. In SCP Cockpit, click on Applications > Java Applications > your app (espm) > Configuration > Destination. 2. Click on New Destination and then fill out the form with the following info: Field Name Value Name twitteroauth Type HTTP URL <Any_Website_URL> Proxy Type NoAuthentication consumerapplicationkey (new property) <Consumer_Key> (Twitter, step 1) consumerapplicationsecret (new property) <Consumer_Secret> (Twitter, step 1)

3. Click on Save.

Step 8: Binding the database to ESPM application 1. On left menu of SCP cockpit, click on SAP HANA / SAP ASE > Databases & Schemas. 2. Click on the new button 3. In the pop-up window, enter the Schema ID as espm and leave the Database Systemas HANA <shared>. 4. Click on Save. 5. Go back to the main cockpit page, then click on Applications > Java Applications > your app (espm) > Configuration > Data Source Bindings.

6. Click on New Binding. 7. In the pop-up window, set the DB/Schema ID as espm, then click on Save.

Step 9: Testing your application 1. In the context menu on the left, click on Overview. 2. Click on Start and wait until the status changes to Started. 3. Click on the Application URL. 4. You will be authenticated with your Twitter credentials. If you are already logged in, you will see the following, otherwise enter your Twitter credentials. 5. Add a product to your chart.

6. Click on the chart icon. 7. Click on Go to checkout. Press Step 2 and fill out all the fields, then click on Step 3.

8. Click on Review, then Place an order.

9. Click on Tweet and check in your Twitter page your app s tweet.