IBM® Bluemix™ is the Platform as a Service(PaaS) cloud offering from IBM®. It enables organizations and developers to quickly and easily create, deploy, and manage applications on the cloud. Bluemix delivers enterprise-level services that can easily integrate with your cloud applications without you needing to know how to install or configure them. Bluemix provides a dashboard for you to create, view, and manage your applications and services as well as monitor your application’s resource usage. Bluemix dashboard also provides the ability to manage organizations, spaces, and user access.
In IBM® Bluemix™, a boilerplate is a container for an application and its associated runtime environment and predefined services for a particular domain. You can use a boilerplate to quickly get up and running. The Node-RED Starter boilerplate has Node-RED,Cloudant databse and Monitoring and Analytics Services as a combo pack.You don’t have to spend time in adding or binding services.
The steps below will help you to build a simple twitter feed application and insert those tweets into Cloudant database with the Node-RED Starter boilerplate.
- IBM Bluemix Account – Take a 30 day free trial here http://ibm.biz/bluemixapp
Step 2: Input the host name and click on CREATE
Step 3: Hurray! The application is created with Cloudant NoSQL DB and SDK for Node js
Step 4: One instance of the application is running perfectly! Click on the URL
Step 6: The Node-RED page opens up with the nodes for each functionality on the left side
Step 7: Drag and drop the twitter node to the sheet1 (ensure you drag and drop the correct node)
Step 10: Enter the required field as shown below
Step 11: Drag and drop cloudant node to sheet1(ensure that you have choosen the correct node)
Step 12: Double click the node and enter the required details
Step 13: Wire the nodes from its node points and click on DEPLOY
Step 14:Yes,now you can see live tweets for the hastag #bluemix on your debug console!!
Step 15: Goto the cloudant database
Step 16: Click on Launch
Step 17: You can see the database (tweets) ! Click on it.
Step 18: You can see the documents with unique id and _rev
Step 19: Click on one of the document and you can see the tweet,date,time,created by whom and all other details in JSON format.
You can use the documents inserted in the Cloudant NoSQL database for further use and Yes,the application was ready within few minutes! That’s the power of Node-RED in IBM Bluemix. You can drag and drop other several nodes which are available in Node-RED to make this a better application(for analysis,for sending notifications etc)
Thanks to Node-Red,Cloudant NoSQL database and IBM Bluemix! You just saved our time from writing 1000 lines of code!
Courtesy: IBM Bluemix, Node-RED, Cloudant NoSQL Database