This is Qt Cloud Services SDK for Node.js. What is Qt Cloud Services? See below:
- The Qt Cloud Services home page is at https://www.qtc.io
- The Developer Documentation page is at https://developer.qtc.io
The preferred way to install the SDK for Node.js is to use the npm package manager. Simply type the following into a terminal window:
npm install qtc
You can find a getting started guide for Qt Cloud Services at:
http://developer.qtc.io/qtc/getting-started?snippets=node
If you are looking for service specific guides, please see:
This SDK is designed to be the most easy way possible to use Qt Cloud Services from Node.js. It supports most of the latest APIs. The following example shows how to use Enginio Data Storage (EDS) with the Node.js SDK.
var qtc = require("qtc");
var eds = new qtc.Eds({ address: "YOUR_EDS_ADDRESS", backendId: "YOUR_EDS_BACKEND_ID"});
// Define collection used in this example
var contacts = eds.collection("contacts");
// Insert object to EDS
contacts.insert({
name: "John",
age: 31,
likes: ["pizza", "coke"],
address: {
city: "Springfield",
country: "USA",
}
}, function(e, result){
if(!e){
console.log(result);
} else {
console.log("Ooops! Something went wrong!", e);
}
});
See the product specific SDK API References: