IBM Bluemix Catalog provides you with over 140 services that shall help manage various aspects of your IT requirements. However, a developer would be interested in a service or set of services that shall expedite the process of configuring the IoT Application Development & deployment environment.
The Boilerplates section within the Bluemix Catalog, offers you with set of ready to use one or more services, that are binded together with an Application of choice. In the scope of this IoT Recipe, let us understand what Node-RED Starter service has, in the offering.
Deploy Node-RED Starter service
The Node-RED Starter service helps you deploy SDK for Node.js as your Application, followed by a Cloudant NoSQL DB service, which in turn is binded to your Application, as the default DB for your IoT requirements. Node-RED shall be the default User Interface and is considered one of the fastest means to begin your IoT Application development.
- Log into IBM Bluemix account and access the Catalog
- Choose to click on the Node-RED Starter service
- Provide a unique App Name, which shall be any custom name to your application
- Select a plan of choice for SDK for Node.js & Cloudant NoSQL DB
- Click on Create, provided on the bottom-right corner of the screen, to go ahead and deploy the Starter service
- The deployment process takes couple of minutes to complete.
- Post successful deployment, you should see your application with an Up & Running status along with the Application URL
- Parallelly, you should also get to see your Application listed under All Apps section of your Bluemix Dashboard.
This section helped you to successfully deploy the Node-RED Starter, a service available under the Boilerplates section within the Bluemix Catalog.
Getting started with your Node-RED Starter Application
In this section you shall be introduced to the set of steps that help you get started with the Node-RED Application.
- Steps #7 and #8 in the previous section, provided you with option to launch the Node-RED Application, using the application URL
- As the Application launches, it prompts you to complete couple of steps: Secure the Node-RED Editor and Browse available nodes
Click on Next to continue
- To secure your Node-RED Editor and the flows associated with it, configure the credentials with a custom User ID and Password of your choice. Optionally, choose to grant access public in Read-Only mode or grant Write permission to all.
Click on Next to continue.
- The next screen displays a set of Node-RED nodes that are publicly available, whose services you can plan to leverage as part of your current application. Choose to include them or you can do so at a later stage
- The last step in the configuration process summarizes your selections & choices. Click on Finish to complete the Application configuration
- The Configuration choices made shall take couple of moments to be applied to your current Application environment
- Post applying your Configuration settings, you are now good to start with your Node-RED editor. Click on the Go to your Node-RED flow editor to launch the editor and get started with your first flow.
Thus, you’ve successfully configured your Node-RED environment and have launched the Node-RED Editor, to begin with your IoT Programming, using a simple action of Drag-n-Drop of Nodes.¬†
The IoT Recipe¬†Deploy Node-RED Starter Boilerplate service successfully demonstrated on the set of steps to deploy and configure your IoT Platform Starter environment along with the Node-RED Application.
As a next step in configuring your IoT environment, go ahead and include the Watson IoT Platform service to your Application. The IoT Recipe How to Register Devices in IBM Watson IoT Platform shall guide you with the set of steps. Register your sensors / devices with Watson IoT Platform, push data into and pull data from it using your Node-RED Application, with Cloudant NoSQL DB acting as the default DB for your IoT environment.