Just a little notice for all of you having fun and success with node.js, likely the most popular JavaScript runtime not being a browser. Some of you already know that qooxdoo’s OO layer (called “qxoo”) does work great on node.js and gets updated and published every week together with our devel demos.
If you didn’t know yet, go ahead and give it a try. But now you don’t even need to download the file from our server, because we added qooxdoo to the node package manager or, in short, npm. Having both, node.js and npm installed, you can simply run npm install qooxdoo right in your project folder and start to use the power of qooxdoo on node.js.
If you are not familiar with node, you can use this simple demo to get started:
var qx = require('qooxdoo');
qx.Class.define("Dog", {
extend : qx.core.Object,
members : {
bark : function() {
console.log("BARK!");
}
}
});
var dog = new Dog();
dog.bark();
The only code specific to node.js in that example is the very first line, and that’s it! Check out more information on qxoo.
That’s awesome! I’ll start playing with qooxdoo and node on my Arch box ASAP.
Geez, that’s unbeleivbale. Kudos and such.
This does not work anymore it says incompatible version. Hope it get fixed
@Tharindu What is it exactly that is not working? The npm installation? The sample code? – If possible, post your problem on the mailing list, this is the best channel to get support.
@Thomas, The current version is incompatible with node 0.6.X and cannot be installed via npm install qooxdoo. I’ve reported this to Martin already. Engine version should be changed in package.json I think.