0.0.6 • Published 8 years ago

tynee v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

node-tynee

A Node.js implementation of the Tynee microservice framework

Build Status npm version

Currenly under development

var Tynee = require('tynee');

var app = require('express')();
var bodyParser = require('body-parser');

app.locals.incrementValue = 5;

var tynee = new Tynee({
  redis: {
    port: 32768
  }
});

tynee.add({
  name: 'incrementer',
  version: '1.0.0',
  service: function(message, callback) {
    var incr = this.incrementValue;
    process.nextTick(function() {
      callback(null, message.body + incr);
    });
  }
});

app.use(bodyParser.json());
app.use(tynee.handler());
app.listen(3000).on('listening', function() {
  tynee.publish(3000);
});
0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago