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.

Original Article

Deploying APIs built via Node.js to IBM Bluemix

Martin W Brennan Martin W Brennan is a co-founder of ViewPop, the social network that puts the creation of 3D photos and videos in the hands of anyone with a smartphone. For his day job, Martin is a copywriting consultant at We Write Words, learning about the world as he writes about it.