How-tos

Getting Started with Bluemix and StrongLoop

StrongLoop, an IBM company StrongLoop, an IBM Company, is one of the leaders of the Node.js community. They offer powerful API capabilities and Node.js DevOps tools, which means exciting things for Bluemix. For those starting from scratch wanting to create a Node.js application with powerful API and CRUD capabilities, look to the LoopBack framework. For those with existing Node.js applications, look to using StrongLoop Arc’s management and DevOps tools to actively monitor your application.

LoopBack provides an open source Node.js framework for your apps that you can extend as needed. With LoopBack, you can easily create REST APIs. You can access data from various databases, MongoDB, and SOAP and REST APIs. Your apps can use various mobile services such as geo-location, file, and push. You can base your apps on Android, iOS, and JavaScript SDKs, and can run them on-prem or in the cloud.

StrongLoop Arc is a graphical UI for the StrongLoop platform that complements the StrongLoop slc command line tools. Arc includes tools for building, profiling, and monitoring Node.js apps.

See StrongLoop on Bluemix!

In the video below, Al Tsang, StrongLoop CTO, explains how StrongLoop and Bluemix will be combined into a seamless hybrid experience. He briefly summarizes the strengths of each product and then demonstrates a sample application leveraging StrongLoop Arc’s local management capabilities now available on Bluemix.


Try StrongLoop on Bluemix!

To get started, if you haven’t done so already, sign up for your free 30 day trial of Bluemix. You’ll find the “starters” of preconfigured packages of sample code and services in the catalog:

  • LoopBack Starter — This is a sample StrongLoop LoopBack Node.js application, powered by the open source LoopBack framework used to compose APIs
  • StrongLoop Arc — This application is the StrongLoop Arc graphical UI, which includes tools for building, profiling and monitoring Node apps

The video below shows the LoopBack sample application deployed to Bluemix, followed by a demonstration of how to control it via StrongLoop Arc’s Process Manager:

To get started, log into Bluemix and select the deploy button below:
Click these buttons and you will be launched into StrongLoop on Bluemix.

Deploy a Sample LoopBack App
Deploy to Bluemix

Deploy StrongLoop Arc
Deploy to Bluemix

Check out strongloop-bluemix/loopback-example-app on GitHub for more information!

Share this post:

Share on LinkedIn

Add Comment
9 Comments

Leave a Reply

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


Hans van Mingroot

Welcome !

Reply

P

Couple of questions,

I’ve installed instances of the sample app and Arc in Bluemix from the starters.

1. How do you secure the Process Manager created from the sample application? I imagine as it’s running now, anyone with my PM hostname can muck with my application.

2. When I try to view the metrics in Arc, none of the graphs appear. I see this error in the console. Any ideas?

TypeError: Cannot read property ‘cpu’ of undefined
at http://strongloop-arc2.mybluemix.net/scripts/modules/metrics/metrics.controllers.js:339:40
at Array.map (native)
at http://strongloop-arc2.mybluemix.net/scripts/modules/metrics/metrics.controllers.js:338:26
at http://strongloop-arc2.mybluemix.net/scripts/vendor/angular/angular.js:16299:28
at completeOutstandingRequest (http://strongloop-arc2.mybluemix.net/scripts/vendor/angular/angular.js:4924:10)
at http://strongloop-arc2.mybluemix.net/scripts/vendor/angular/angular.js:5312:7

Reply

    Sai Vennam

    1) We’re working on a more complete solution for this; the sample today is quite basic. For now, you can change the URL where the PM is hosted by using the “PM_URL” environment variable, although that is still not a secure solution. Stay tuned for more developments in this space.
    2) Make sure you are generating some traffic to your application, so Metrics has some data points to collect. The log you’ve posted seems suspicious; I’ll investigate.

    Reply

Anthony Hervé

Thank you for this very good tutorial.
Just one comment : the url associated to the second deploy button (Deploy StrongLoop Arc) is not correct.

Anthony.

Reply

    Dan Kehn

    Thanks, the URL is correct now. :-)

    Reply

nagendra Shukla

Not sure what’s wrong, but i clicked on first deploy button -> launched to blumix -> clicked on Deploy. then i get “Project creation failed” and “Something went wrong!
404 Not Found”
Anyone Please suggest what could the issue.

Reply

nagushukla

I am able to deploy both the apps in Bluemix, i can access both via browser. Now when i try pm on arc to configure first app, its not helping. error os “There is no method to handle GET /ServiceInstances/findOne”

Reply

    Sai Vennam

    You need to add a new route to the LoopBack application named:
    app_name-pm.mybluemix.net (appending -pm to the app name).

    I suggest using the analogous boilerplates on Bluemix as they are updated more frequently, and have full documentation.

    Check the “Managing your App” section on these docs:
    https://www.stage1.eu-gb.bluemix.net/docs/starters/LoopBack/index.html

    Reply

Isha Bobra

I added the route as “app_name-pm.mybluemix.net” with port 80 to the PM and added that as another route for my bluemix app, still getting the error: “There is no method to handle GET /ServiceInstances/findOne”. What am i missing on?

Reply
More How-tos Stories

Protect your web applications with Mobile Client Access service

Today we’re happy to tell you about a new feature of the Mobile Client Access service: web application protection. You can now protect your web applications with social identity providers like Facebook or Google, or you can implement a custom authentication to validate user credentials.

Best of Bluemix: MongoDB, Watson, Cordova

To call attention to popular articles on Bluemix available on IBM developerWorks, this weekly post will introduce three "best of" articles. This week's entry focuses on quick application building exercises using MongoDB, Watson, and Cordova.

Building Your Own Watson Powered App

Our first webinar was meant to introduce the concepts behind Watson, cognitive computing, and Bluemix. We also did a deep dive into each of the services available for developers to start working with, but we didn't spend time showing you how to use the services. With our next webinar on October 29th at 11 am EST, we'd like to focus our time on working with services on the Bluemix platform. You'll see how to work with JSON objects, bind services, and build a Watson powered application and will walk away with the practical knowledge of how to put these services into their applications and to see just how easy it is to get started with Watson services on Bluemix.