Qube website
-
Install MongoDB ~3.0.4
-
create an empty directory "..\qube\db"
mongod.exe --dbpath c:\MongoDB\qube\db --logpath c:\MongoDB\Logs\qube.txt --install
net start MongoDB
requires Python2.7 npm config set cafile /c/cacert.pem npm config set strict-ssl false
git clone ssh://[email protected]/var/repo/qubic.git
cd qubic
npm install
npm run-script install-windows-service
net start qubic
export QUBE_MONGODB_URL=mongodb://{your_mongo_server}:27017/qube (bash) set QUBE_MONGODB_URL=mongodb://{your_mongo_server}:27017/qube (dos) set AD_CONTROLLER=ldap://{your_ad_controller}
npm run dev-win
Use cached if not logged in. Cache if not logged in. http://www.djm.org.uk/wordpress-nginx-reverse-proxy-caching-setup/
play user_ public_<collection_name> private_<collection_name>
IGNORE: With the current document format and available libraries it is imposible to extract the qube expressions from a document without slatejs (which doesn't run in node). We need to first extract the qube_expressions code from slatejs_qube
fetch the qube snapshot from http://qube.ims.uss.co.uk:3000/api/share/draft/90sd6ekpoy where 90sd6ekpoy is the doc id.
var qube = require('qube'); var ot = require('ot-sexpr'); fetch = require('node-fetch'); var q; fetch('http://qube.ims.uss.co.uk:3000/api/share/draft/90sd6ekpoy').then(d => { console.log(d)}) //doesn't work because requires authentication