Cubism
From charlesreid1
On Cube and Cubism, and interfacing with them from Python.
Part 1: Hello Cube World
Step 1: install mongodb:
brew install mongodb
Step 2: install node.js
brew install node
Step 3: install cube using node package manager
npm install cube cd node_modules/cube npm install
This may spit out some kind of message, and look like it didn't install successfully, but you can just pretend like everything went fine and continue.
Step 4: In another terminal, start mongo daemon:
mongod
Step 5: start up cube's collector and evaluator:
cd node_modules/cube node bin/collector.js 2>&1 node bin/evaluator.js 2>&1
These start on ports 1080 and 1081. Now test them out: visit localhost:1080 and localhost:1081
To post stuff to mongodb, post it to http://localhost:1080/1.0/event/put