Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
The buddycloud server written in Java.
Java Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
contrib/init.d
lib
postgres
repo/org/jivesoftware/whack/1.0.0
src
.gitignore
.travis.yml
LICENSE
README.md
configuration.properties.example
log4j.properties.example
pom.xml

README.md

buddycloud Java Server implementation

A buddycloud server written in Java, implementing the buddycloud channels protocol.

Build status

Note this points to the main buddycloud repository for the java server.

Build Status

Database install

The java server purposefully uses the same database schema as the buddycloud node.js server. See here for database installation instructions https://github.com/buddycloud/buddycloud-server/tree/develop/postgres.

Build and run

  • install openjdk-6-jdk maven2
  • git clone https://github.com/buddycloud/buddycloud-server-java
  • cd buddycloud-server-java
  • mvn package
  • Edit configuration files as required
  • Install database
  • `java -jar target/channelserver--jar-with-dependencies.jar

Manually create the buddycloud server database

# switch to the postgres user
sudo su - postgres

Create a database user and assign it a password (it will not work with a blank password);

createuser buddycloud_server --pwprompt --no-superuser --no-createdb --no-createrole

Then just proceed as follows, entering the password you picked whenever asked.

# create the database
createdb --owner buddycloud_server --encoding UTF8 buddycloud_server

# install the schema file (and all upgrade files)
psql -h 127.0.0.1 -U buddycloud_server -d buddycloud_server < postgres/install.sql
psql -h 127.0.0.1 -U buddycloud_server -d buddycloud_server < postgres/upgrade-1.sql
psql -h 127.0.0.1 -U buddycloud_server -d buddycloud_server < postgres/upgrade-2.sql

Now we're done, but we must test that we can connect to the database and that the schema was installed appropriately.

psql -h 127.0.0.1 --username buddycloud_server -d buddycloud_server -c "select * from nodes;"

If you got an output similar to (or exactly like) this, you're good to go.

Something went wrong with that request. Please try again.