eyeos-bustohttp

0.0.47 • Public • Published

Eyeos BusToHttp Library

Overview

How to use it

Example to create server using eyeos-BusToHttp

var express = require("express"); var BusToHttp = require("eyeos-BusToHttp")

var app = express();

app.get('/lol/lol/hello', function (req, res) { res.send('Hello World!'); })

var server = app.listen(3000, function () { var host = server.address().address; var port = server.address().port; console.log('Example app listening at http://%s:%s', host, port); })

var connectInfo = { busHost: "localhost", busPort: 5672, queueName: "lol.lol" }; var busToHttp = new BusToHttp();

busToHttp.start(connectInfo, "localhost", 3000, function () { console.log('Example app listening'); })

Quick help

  • Install modules
    $ npm install
  • Check tests
    $ ./tests.sh

Readme

Keywords

none

Package Sidebar

Install

npm i eyeos-bustohttp

Weekly Downloads

1

Version

0.0.47

License

AGPL-3.0

Last publish

Collaborators

  • eyeos