Install Cassandra
$ brew install cassandra
$ cassandra
$ npm install
$ npm test
$ npm run build
$ npm run start-docker
$ npm start
-
LOG_LEVEL
- info
- debug
- trace
-
DB_HOST: cassandra database hostname/ip
-
DB_PORT: cassanrda database port
-
DB_KEYSPACE: cassandra database keyspace name to use
var socket = io("http://hostip:7002/");
var event='get-event';
var query ={ id: 'CIMCON-DCU-01'};
// get the event by GROUP ID
socket.emit(event, query, function(res){
console.log("Response :",res);
});
// watch for new event
socket.on('add-Event', function(data){
console.log("New Event added", data);
});
get-event- Get all Events for a Groupadd-Event- Add an Event for a Groupget-all-event- Get All Events by categoryget-all-event-by-dec- Get All Events by description for Groupget-event-bydate- Get all Events for a Group for given dateclear-Event- Clear events for a Group based on category