Skip to content

QML wrapper for Asteroid, a Javascript Meteor client library

Notifications You must be signed in to change notification settings

achipa/Qondrite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Qondrite

A QML wrapper for Asteroid, a javascript client (browser and node) for a Meteor backend.

##Table of contents

Why

Install

Example usage

##Why

Meteor is an awesome platform, but its canonical front-end is not very flexible. Asteroid gives the possibility to connect to a Meteor backend with any JS app. Qondrite in turn makes this possible to do in any QML app.

Blog post on the library

##Background and Demo video (screenshots or it didn't happen)

IMAGE ALT TEXT HERE

##Install

Dependencies (installed as git subtrees)

q.js from https://github.com/achipa/q/blob/v1/q.js

asteroid from https://github.com/achipa/asteroid/blob/master/dist/asteroid.qml.js

ddp.js from https://github.com/achipa/ddp.js/blob/master/src/ddp.js

JSONListModel from https://github.com/achipa/qml-utils/blob/master/JSONListModel/JSONListModel.qml

Log.js from https://github.com/krnekit/qml-utils/blob/master/qml/Log.js

##Example-usage

Use Qondrite.qml as follows:

Qondrite {
    id: asteroid
    meteor_url: "localhost:3000"
    onOpen: statusText = "Connection to " + url + " established";
    onClose: statusText = "Connection closed";
    onError: statusText = "Error: " + errorString;
}

Example self-contained Qt project using Qondrite:

https://github.com/achipa/outqross_blog/tree/master/3_OutQross.Meteor_demo

About

QML wrapper for Asteroid, a Javascript Meteor client library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages