This developer's guide provides documentation on how to build,deploy & test the application. But also to encourage Hacktivism and give people enough knowledge on how to develop their own web applications using Maven, Hibernate, Spring & Vaadin.
To build and run the Citizen Intelligence Agency you need to install the following software.
The source can be checked out anonymously from SVN with this command:
$ svn checkout https://cia.svn.sourceforge.net/svnroot/cia/trunk cia-trunk
The command below describes how you setup an database user that will be used by the application.
Use the commandline to access postgresql or through pgAdmin3. > sudo su - postgres > psql
postgres=# CREATE USER eris WITH password 'discord';
postgres=# CREATE DATABASE cia_dev;
postgres=# GRANT ALL PRIVILEGES ON DATABASE cia_dev to eris;
Now everything should be ready for you to build the application, execute the following commands to build & run
$ mvn clean package -Pdev,skip-db -Dmaven.skip.test=true
$ mvn jetty:run -Pdev,skip-db -Dtest=none -Dmaven.skip.test=true
or using convenient ant task
$ ant run
This will build build a .war file and start en embedded jetty instance
NOTE: Set the variable MAVEN_OPTS="-Xmx1024m -Xms512m -XX:MaxPermSize=512m" if you get java memory exception.
Now if everything has started successfully you should be able to view Citizen Intelligence Agency at http://localhost:8080/
If you want to do any serious development I would recommend that you install the latest version of Eclipse http://www.eclipse.org/downloads/ and also add the following plugins below.