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 development their own web applications using Maven, Hibernate, Spring, Struts-tiles & jboss.
To build and run the Direct Democracy Portal you need to install the following software.
The source can be checked out anonymously from SVN with this command:
$ svn checkout https://edemocrazy.svn.sourceforge.net/svnroot/edemocrazy/democracy/trunk democracy
The command below describes how you setup an database user that will be used by the application.
Start the mysql command line tool with this command:
$ mysql -u root
and execute the following command
mysql> GRANT ALL PRIVILEGES ON *.* TO 'democracy'@'localhost' IDENTIFIED BY 'directdemocracy' WITH GRANT OPTION;
Download jta-1_0_1B-classes.zip from http://java.sun.com/products/jta/
mvn install:install-file
-Dfile=./jta-1_0_1B-classes.zip
-DgroupId=javax.transaction
-DartifactId=jta -Dversion=1.0.1B
-Dpackaging=jar
Now everything should be ready for you to build the application, execute the following command to build
$ mvn clean jetty:run-war -Pdev -Dtest=none
This will build build a .war file and start en embedded jetty instance
Now if everything has started successfully you should be able to view Direct Democracy portal at http://localhost:8080/
If you want to do any serious development I would recommend that you install the latest version of Eclipse and also add the following plugins below.
To generate all the correct eclipse project files for the project just use the command:
$ mvn eclipse:eclipse