Create a rewards program application and APIs

Get the code View the demo


Today’s enterprises require performance, scalability, and security in order to host powerful apps with any number of features and APIs. In this code pattern, you’ll learn how to meet these challenges by examining a case study of a fictitious credit card program. You’ll discover how to leverage Node.js on a mainframe system — in this case, z/OS — and will create your own Node.js rewards program application. You’ll use the Loopback framework and will deploy your app to z/OS.


If you’re a developer tasked with creating applications for an enterprise, you know your requirements are different than for a small one-dimensional mobile app. You need enterprise-level performance, scalability, and security.

Node.js on z/OS is just such an enterprise-level offering, making it ideal for hosting back-end applications that require access to z/OS assets. In this code pattern, you’ll work through the business challenges that a typical customer on IBM Z might experience. You’ll examine a case study about a fictitious credit card program and discover how it leverages the capabilities of both Node.js and z/OS. When you complete this code pattern, you’ll have created your own Node.js application using the Loopback framework and will have deployed it on z/OS.

The Node.js back-end application that you will build accesses information that resides on z/OS and provides an API that can later be consumed by front-end applications and services. This pattern showcases the benefits of hosting the Node.js application on z/OS and introduces Node.js development for traditional z/OS developers, giving you the right combination of skills for a modern mainframe environment.

When you complete this pattern, you will understand how to:

  • Install Node.js on z/OS
  • Implement and deploy a Node.js application using Loopback for API access



  1. Create a Node.js rewards program application using the LoopBack framework.
  2. Deploy the Node.js application on z/OS to benefit from collocation advantages such as performance and security.
  3. Expose the rewards program APIs. (Note: The credit card and customer info remains secure in z/OS.)
  4. Explore, test, and consume the APIs that you have created.