Skip to Content
Author's profile photo Helmut Tammen

OData server for node.js – Tutorial: Deploying to CF Platform (YaaS)

In this blog I want to announce the second tutorial for my node.js OData server (n-odata-server). In this tutorial you learn how you can deploy a n-odata-server application to a Cloud Foundry platform. As SAP in the meantime has such a platform in it’s portfolio I of course used this one for this tutorial.

When SAP didn’t offer this opportunity I also already used another CF platform for deploying my application and it also worked well. That’s one of the benefits of Cloud Foundry: develop your app and deploy it to any CF platform you like without having to learn platform specifics.

YaaS is the SAP platform that is used to offer a Cloud Foundry platform for HCP. IMHO the support for Cloud Foundry was an important decision so that HCP can and will survive in the fast growing PaaS market.

Coming back to my tutorial

In this tutorial I simply used the application of my first tutorial that has a very simple data structure and exposes it via OData. I enhanced the package.json file that is an application descriptor for node.js applications, added a manifest.yml, that’s the app descriptor for a CF application, to my project and deployed it to the HCP CF services via the CF CLI.

In the tutorial which you can find in the wiki of my n-odata-server github project I explain some more details about all this new stuff.

Bildschirmfoto 2016-09-19 um 17.02.20.png

If you follow the tutorial at the end you will have a little OData service for which you can create a HCP destination and write a UI5 application with SAP Web IDE to manage the data in that service.

The application of this tutorial saves the data that you create in a text file on your CF server. This is for several reasons not a good solution. Hence I will bind the application in one of the next tutorials to a persistence service on HCP CF services platform.

Maintenance UI for CF applications

Cause I didn’t mention it in the tutorial itself (I only explained the CLI way there) I would like to use this blog to call attention to the possibility to manage and monitor your CF apps on HCP CF services via a nice UI5 app, the HCP CF services cockpit.

Bildschirmfoto 2016-09-19 um 16.39.54.png

Stay tuned for updates about n-odata-server.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Helmut,

      I have read both of your blogs, a great initiative towards building odata services. Congrats 🙂 I have a requirement to build Odata services by making use of existing rest services. I am exploring on loopback-rest-connector, any inputs on how to proceed ?

      Regards,

      Minakshi