An ECA engine which acts as a middleware between WebAPI's.
Find a file
2014-04-05 03:09:40 +02:00
coffee Cleansing, formatting, consistency 2014-04-05 03:09:40 +02:00
config Testing of components manager done 2014-04-02 23:08:05 +02:00
documentation Engine started in coffeescript 2014-04-03 17:41:51 +02:00
js Cleansing, formatting, consistency 2014-04-05 03:09:40 +02:00
logs renamed start scipts, added test for the webapi-eca engine 2014-02-19 14:14:08 +01:00
mod_actions reworking the code and adding tests 2014-02-04 08:35:07 +01:00
mod_events man changes and additions to webpages, module storing and rules forge. we're getting there... 2013-12-08 22:59:04 +01:00
node_modules cleansing, js-coffee moved to js where it is supposed to be. legacy js files removed. README updated 2014-04-05 02:05:51 +02:00
rules very rude commit, basically porting everything from the original project to create a new clean approach with thorough documentation and testing. This commit relies on the huge TODO list to be solved in order to go into a release state. 2013-11-13 16:21:58 +01:00
testing Cleansing, formatting, consistency 2014-04-05 03:09:40 +02:00
webpages User-parameter support implemented, system seems to run smoothly 2014-04-04 19:53:42 +02:00
.gitignore Updates on testing, message transport and objects 2014-03-27 08:03:35 +01:00
compile_coffee.sh cleansing, js-coffee moved to js where it is supposed to be. legacy js files removed. README updated 2014-04-05 02:05:51 +02:00
compile_pagescripts.sh Huge changes in webpage display. ACE now added to present a convenient editor 2014-02-21 17:18:58 +01:00
gen_doc.sh cleansing, js-coffee moved to js where it is supposed to be. legacy js files removed. README updated 2014-04-05 02:05:51 +02:00
LICENSE.md What a wonderful detour over docco, only to recognize that it was always possible to auto generate documentation. 2013-11-20 15:41:41 +01:00
package.json cleansing, js-coffee moved to js where it is supposed to be. legacy js files removed. README updated 2014-04-05 02:05:51 +02:00
README.md cleansing, js-coffee moved to js where it is supposed to be. legacy js files removed. README updated 2014-04-05 02:05:51 +02:00
run_engine.sh cleansing, js-coffee moved to js where it is supposed to be. legacy js files removed. README updated 2014-04-05 02:05:51 +02:00
unit_tests.sh Cleansing, formatting, consistency 2014-04-05 03:09:40 +02:00

README: webapi-eca

A Modular ECA Engine Server which acts as a middleware between WebAPI's.

The server is started through the webapi-eca.js module by calling node js/webapi-eca.js.

Getting started

Prerequisites:

  • node.js (find it here)
  • (optional) Pygments if you want to generate the doc: sudo apt-get install python-setuptools and then sudo easy_install Pygments
  • (optional) CoffeeScript, if you want to develop and compile from coffee sources: sudo npm -g install coffee-script

Clone project:

git clone https://github.com/dominicbosch/webapi-eca.git

Download and install dependencies:

cd webapi-eca
npm install

Get your redis instance up and running (and find the port for the config file below) or create your own js/persistence.js.

Edit the configuration file:

vi config/system.json

Apply your settings, for example:

{
  "http-port": 8125,            # The port on which the system listens for requests
  "db-port": 6379,              # The db-port where your redis instance is listening
  "log": {                      ### logging configurations
    "mode": "development",      # if set to productive no expensive origin lookup is performed and logged
    "io-level": "info",         # the log-level for the std I/O stream
    "file-level": "info",       # the log-level for the log file
    "file-path": "server.log"   # log file path, relative to cwd
    ( add "nolog": "true" if no log shall be generated at all. Mainly used for unit tests )
  }
}

Start the server:

run_engine.sh

Congratulations, your own WebAPI based ECA engine server is now up and running!

Optional command line tools:

Create the doc (to be accessed via the webserver, e.g.: localhost:8125/doc/):

WARNING:

manual adjustment of ./node_modules/groc/lib/styles/default/docPage.jade required until groc is fixed:

!!! 5 needs to be relaced with doctype html

run_doc.sh

Run test suite:

run_tests.sh