System Installation

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

Getting started

Prerequisites:

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. Visit their page, for Ubuntu this is fairly easy:

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install tcl8.5
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
make test
sudo make install
cd utils
sudo ./install_server.sh

Edit the configuration file:

vi config/system.json

Apply your settings, for example:

{
  "http-port": 8125,
  "db-port": 6379,
  "log": {
    "mode": "development",
    "io-level": "info",
    "file-level": "info",
    "file-path": "server.log",
    "nolog": "false"
  }
}

The configurations properties are:

Start the server:

run_engine.sh

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

Optional command line scripts

Run test suite:

run_tests.sh

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

run_doc.sh