lipp / lua-jet

Realtime Message Bus for the Web. Lua Implementation

Home Page:http://jetbus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

lua-jet is a Jet daemon and peer implementation written in Lua. Build Status Coverage Status

Installation

With luarocks:

$ sudo luarocks install lua-jet

Most recent github version:

$ git clone https://github.com/lipp/jet.git
$ cd jet
$ sudo luarocks make rockspecs/lua-jet-scm-1.rockspec

Dependencies

In particular you need libev installed.

Ubuntu / Debian based Linux:

$ sudo apt-get install libev-dev

OSX with Homebrew:

$ brew install libev

Running the daemon

$ jetd.lua

Starting an example peer

$ cd lua-jet
$ lua example/some_service.lua

Radar

Radar is a web application that gives you access to a Jet bus.

$ sudo luarocks install orbit
$ git clone https://github.com/lipp/radar
$ cd radar
$ ./simple_webserver.lua

Watch Your Jet Bus on Your local Radar.

Doc

For general information, visit the Jet Homepage. Look at the API.md, the examples or the busted test spec files.

Tests

To run the tests, busted version 1.11.1 needs to be installed:

$ sudo luarocks install busted 1.11.1-1

If all is in place, run the tests from within the lua-jet dir like this:

$ busted spec

For more details on installation and running tests under debian based Linux see the ".travis.yml" file.

About

Realtime Message Bus for the Web. Lua Implementation

http://jetbus.io

License:MIT License


Languages

Language:Lua 99.5%Language:Shell 0.5%