Skip to end of metadata
Go to start of metadata

Getting Source:

Get a local copy of the cat-scmp repository with this command:

SCMP Database:

we will MySQL as database server

  • create empty database called scmptest
  • You will find file in cat-scmp/doc/ called scmp.sql that contains all required tables. import this file to your new database by this command :

After importing this file you will see three tables in scmptest database(AuthTable, offline, roster).

  • You should add users to this database. For example add this user

SCMP Configuration:

all configuration files are exist in cat-scmp/config

  • the first file called authConfig.xml that contains authentication configuration . open this file and edit it according to your database server. you may need to change password or username or database name.
  • do the same with offlineConfig.xml and roster.xml
  •  Then edit server.xml file. if you will test it on the localhost, you should change "ChatServerDomain" and "GroupChatServerDomain" to localhost

SCMP Build:

in cat-scmp directory there is a file called build.xml.

You should run this file before run scmp application, you can run it from your IDE or by this command but you should be in the same directory:

You should run these targets (build, Main)

Run SCMP application:

if it was the first time to run application you should use

otherwise you can run Main.java that are exist in net.cathackers.devel.scmp package.

Test SCMP :

you can use any XMPP client like pidgin to test chat server.

To run chat server you should run SCMP application first. Then you can use accounts that you added before to connect to chat server.

Labels:
  1. Jun 02, 2010

    shouldn't we use "ant Main" to run SCMP?

    1. Jun 04, 2010

      Yeah, you are right. I forgot that