LoopBack is a Node API framework for creating robust and fully functional REST APIs from a variety of data sources. In this tutorial, I show how you can create an API using LoopBack and an existing MongoDB data store in just 5 minutes — with user authentication and many other great features included out of the box.

Now it’s time to deploy your API in just 5 more minutes.  Luckily it’s just as easy to deploy LoopBack applications to the IBM Cloud as it is to create them. Watch the video below, or head directly to the GitHub repo here to view the code and deployment tutorial.

Why deploy your API to the IBM Cloud?

With Bluemix, the IBM Cloud, you have the advantage of setting up a Cloud Foundry instance to have your application running both flexibly and reliably. With Cloud Foundry’s Node runtimes on Bluemix, you don’t have to worry about the issue of setting up a runtime, installing your operating system, downloading your dependencies, and all that jazz.

All you have to do is specify your deployment information in your manifest.yml and package.json files, and Cloud Foundry will do the rest for you. You can get as specific and as granular as you want – anything you can do with Node.js and npm, you can do on your Cloud Foundry platform.

Extending your API with the IBM Cloud

Once you get your API online, Bluemix gives you the flexibility to connect just about any service you want to it. Do you need to connect a serverless action to your API as a remote method? OpenWhisk is right there. Do you need to perform instant analysis on incoming customer emails, and prioritize the not-so-happy-sounding ones? Watson Tone Analysis is available right from the console. You can even stay within the confines of Bluemix and set up your persistent data store right there, or manage your API Gateway with API Connect.

Ready to give it a try? Sign up for a free account on Bluemix and head over to the tutorial on GitHub to get started.

Join The Discussion

Your email address will not be published. Required fields are marked *