Buddycloud

(Diferença entre revisões)
Ir para: navegação, pesquisa
Linha 1: Linha 1:
In order to create a testing environment for Buddycloud you can do:
+
In order to create a testing environment for Buddycloud you can follow each software/library instruction.. read everithing.. for me it worked.. to summarize I did:
  
 
OS: Ubuntu 11.04 x86
 
OS: Ubuntu 11.04 x86
Linha 5: Linha 5:
 
1) '''Install an XMMP Server'''.. I tried Prosody (http://prosody.im). I followed their installation instruction and it worked like a charm.  
 
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
 
See http://prosody.im/doc/install
 +
 
2) '''Install Node.js ans Node package manager'''..  
 
2) '''Install Node.js ans Node package manager'''..  
 
Install any dependencies you should need.. In my case I just installed libssl-dev
 
Install any dependencies you should need.. In my case I just installed libssl-dev
Linha 54: Linha 55:
 
     poolSize: 4
 
     poolSize: 4
 
  };
 
  };
 +
 
7) Run it
 
7) Run it
 
  node main.js
 
  node main.js
  
 
8) Test it .. Working on this..
 
8) Test it .. Working on this..

Edição das 10h51min de 19 de julho de 2011

In order to create a testing environment for Buddycloud you can follow each software/library instruction.. read everithing.. 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 libdev-ssl

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 Buddycloud channel-server

npm install channel-server

5) Install Couchdb, change in http://localhost:5984/_utils/config.html reduce_limit to false, and create a db

sudo apt-get install couchdb

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..

Ferramentas pessoais
Espaços nominais
Variantes
Ações
Navegação
Ferramentas
Rede Mocambos