You are here

How to Deploy APIs Built Via Node.js to IBM Bluemix

Node.js is a server-side JavaScript engine that makes it easier to create fast-moving Web frameworks. Since developers generally knows at least some JavaScript, Node.js becomes a relatively easy introduction to projects.

As an example, Walmart leveraged Node’s server-side execution to deliver sophisticated features to mobile users, saving them time by customizing content based on device type and browser capabilities. Implementing Node for this project not only gave the developers an end-to-end JavaScript environment but facilitated a rich and dynamic website experience even on devices that weren’t particularly powerful.

In this tutorial, Niklas Heidloff discusses how to deploy an API to IBM’s latest cloud offering, Bluemix, via Node.js. This tutorial references a previous project on how to use Swagger to document APIs in Node apps, with additional information on deploying via Docker while using the API management service for allowing API owners to monitor usage.

The tutorial begins by describing how to deploy a Node app to IBM as a Docker Container, with code and relevant screenshots provided. Next, the author explains how to enforce a client ID and secret when invoking the API using Bluemix’s API management service.

Detailed screenshots show specific Bluemix configurations to apply, outputting the author’s personalised version of the “Hello, World” standard.

Be sure to read the next Cloud article: 10 Lessons to Learn from 10 Years of AWS

Original Article

Deploying APIs built via Node.js to IBM Bluemix