Buddycloud
In order to create a testing environment for Buddycloud you can follow each software/library instruction.. read everything.. for me it worked.. to summarize I did:
OS: Ubuntu 11.04 x86
1) Install an XMMP Server.. I tried Prosody (http://prosody.im). I followed their installation instruction and it worked like a charm. See http://prosody.im/doc/install
2) Install Node.js ans Node package manager.. Install any dependencies you should need.. In my case I just installed libssl-dev
sudo apt-get install libssl-dev
Then you can use this script.. create a file, like "node-and-npm_installer.sh", give it +x and run it.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc . ~/.bashrc mkdir ~/local mkdir ~/node-latest-install cd ~/node-latest-install curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 ./configure --prefix=~/local make install # ok, fine, this step probably takes more than 30 seconds... curl http://npmjs.org/install.sh | sh
3) Configure Prosody Add these lines in /etc/prosody/prosody.cfg.lua (or something like that considering your network/dns configuration)
Component "buddycloud.kalakuta.nes.it" component_secret = "123456"
4) Install Couchdb, change in http://localhost:5984/_utils/config.html reduce_limit to false, and create a db
sudo apt-get install couchdb
5) Install Buddycloud channel-server
npm install channel-server
6) Configure Buddycloud channel-server Copy config.js.example in config.js and than change according to your needs.. mine is like this
/** * XMPP Component connection */ exports.xmpp = { jid: 'buddycloud.kalakuta.nes.it', password: '123456', host: 'kalakuta.nes.it', port: 5347 }; /** * Enable & configure one of the following backends. */ // CouchDB backend exports.modelBackend = 'couchdb'; exports.modelConfig = { host: 'kalakuta.nes.it', port: 5984, database: 'buddycloud', poolSize: 4 };
7) Run it
node main.js
8) Test it .. Working on this..