In order to run Common Knowledge you need a server (we recommend Ubuntu 12.04 at this point) that is able
to run the database (MongoDB),
a XMPP server (Prosody or Ejabberd), and
the REST interface for the database - Drowsy Dromedary (https://github.com/zuk/DrowsyDromedary).
Drowsy Dromodary, Rollcall, and the Agents require Ruby 1.9.3 to be installed.
Using Grunt to do the Grunt work
We want some JS files to pass JSHint, have coffee script that needs to be compiled into JS, and SCSS files that should be transformed into CSS. We use grunt for this.
Install the grunt command line interface (CLI):
npm install -g grunt-cli
grunt on the command line will say that grunt is missing stuff.
The dependencies for gruntare added to the package.json file so the install should be easy by issuing (in the ck folder)
Once the install is done (without errors) you should be able to do all the mentioned tasks by issuing (in the ck folder)
Try removing a ; in the mobile JS files and you should get a JSHint error.
Make sure you have Ruby 1.9.3 installed and add the users eventlogger and choreographer to Rollcall. Make sure to use the hashed password in the daemon.rb file. Furthermore, make sure that the mongo database works fine and can be called by typing "mongo" in the console.
To start the agent go to the common knowledge folder (in a terminal) and change into the agent folder. Now type bundle exec ruby daemon.rb
to stop the agent type:
#LICENSE This software is available under the MIT licence (http://www.opensource.org/licenses/mit-license.php)
Copyright (c) 2013 -- Jim Slotta, Armin Krauss, Colin McCann, Matt Zukowski and others - Ontario Institute for Studies in Education (OISE) at University of Toronto
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.