metemq:metemq

Meteorify IoT. Expand your galaxy.


License
MIT
Install
meteor add metemq:metemq@=0.6.7

Documentation

MeteMQ

Video on Youtube

Youtube: MeteMQ - JavaScript IoT App Platform

MeteMQ

MeteMQ is an IoT app platform based on Meteor, and MQTT. It's the easiest way to build an IoT application with JavaScript.

Installation

If you don't have Meteor on your PC, install it first.

On Windows, simply go to https://www.meteor.com/install and use the Windows installer.

On Linux/macOS, use this line:

curl https://install.meteor.com/ | sh

Add MeteMQ package to your Meteor project:

meteor add metemq:metemq

Example

import { Source, Things } from 'meteor/metemq:metemq';

const source = new Source();

source.publish('demo', function() {
    return DemoCollection.find();
}, ['name', 'age']);

source.methods({
    hello() {
        console.log(`Thing ${this.thingId} says "hello"`);
        return 'world!';
    }
});

Test

meteor test-packages --driver-package practicalmeteor:mocha ./

You'll then be able to read the report locally in your browser at http://localhost:3000/.