Tutorial: Node.JS

Step by step Node.JS

  1. Download [[service]] SDK for Node.JS

    npm install webcom
  2. Next, in your app code, import [[service]] SDK to use it

    var Webcom = require('webcom');
  3. API is similar to the web SDK. Watch out some examples to read and write data

    var myRef = new Webcom('[[baseUrl]]/base/<your-webcom-app>');
    /* 
    Read data
    */
    myRef.on('child_added', function(snap){
     console.info(snap.val());
    });
    /* 
    Write data
    */
    myRef.set({foo: 'bar'});