top of page
A male Asian developer brainstorming

Ease of Development

Ease of Development

Get started quickly

If you know basic HTML, CSS and Javascript, you can quickly get started with Qbix. Check out the tutorials for some ideas. Here, for example, is how you would add a script when a page loads:

​

Q.page('MyApp/welcome', function () { Q.addScript("js/MyApp.js"); });

​

and here is how you would put a couple tools on a page:

​

<div id="content"> <php echo Q::tool('Q/inplace', $options); ?> <php echo Q::tool('Q/form', $action) ?> <?php Q_Html::input('foo', $value) ?> </form> </div>

​

These tools are automatically activated when the page is rendered, and "just work". In this case, for example, the form becomes an AJAX form, and the Q/inplace lets you edit text in place. Developing in Qbix mostly feels like this. You just express yourself in a straightforward way and Qbix takes care of the rest. Here are some more examples:

​

// set a default option for user login Q.Users.login.options.using = "native,facebook"; // get logged in user's id: Q.Users.loggedInUser.id // listen for moves made in any chess game Q.Streams.onMessage("Chess/game", "Chess/move") .set(callback); // listen for moves made in a given chess game game.onMessage("Chess/move") .set(callback);

2

Easily achieve advanced results

Your apps also come with a sample Node.js script that looks like this:

​

require('../Q.inc')(function(Q) { Q.plugins.Users.listen(); Q.plugins.Streams.listen(); });

​

All you have to do is run it with Node.js, and the app will automatically start broadcasting chess moves in real time to everyone watching the game online, and sending offline notifications to those who opted to subscribe to updates from the game. All this and more just works out of the box. When you read the documentation, you'll be able to customize these features for your own purposes.

3

Interoperates with other frameworks

Do you have a particular Javascript library you enjoy, like Angular or Ember? Drop it in. Do you want to use some classes from the Zend framework? Just copy them into the classes directory in your app. It's that easy.

bottom of page