Skip to Content
Technical Articles

How to connect Node.js application to public and On-Premise system – Cloud Foundry environment

Github repository:

To be published soon…

 

Introduction:

  • In this session, we will look at how to connect Node.js application to public and On-Premise systems in SAP Cloud Platform – Cloud Foundry environment

 

Synopsis:

  • In the previous sessions, we had looked at how to connect SAPUI5 applications to public and On-Premise systems
  • The key differentiator between SAPUI5 application and Node.js application is that the Node.js application runs on the backend whereas the SAPUI5 application runs on the browser
  • We will make use of axios – a popular npm package for making HTTP requests
  • The Connectivity Service and Destination Service together can be used to connect to On-Premise systems
  • The Connectivity Service acts as a standard HTTP proxy to connect and retrieve data from the On-Premise system

 

Steps:

  • In this example, we will create a simple Node.js application and consume the publicly available Northwind OData Service
  • Then we will modify the Node.js application to consume the publicly available Northwind OData Service – but this time reading key information from the Destination Service
  • We will then consume the On-Premise OData Service using both the Destination Service and the Connectivity Service

 

YouTube link:

 

Conclusion:

  • This video should give you a clear idea on how to use the Destination Service and Connectivity Service together in a Node.js application to connect to both publicly available endpoints and On-Premise systems
  • If you have questions or comments, please list them below and I will be happy to answer

 

Previous post:

https://blogs.sap.com/2020/09/19/how-to-connect-applications-to-on-premise-system-cloud-foundry-environment/

Be the first to leave a comment
You must be Logged on to comment or reply to a post.