Skip to content
Collect data using mobile phones instead of paper forms
Java ActionScript JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
conf
deploy
lib
ndg-commons-core
ndg-server-core
ndg-server-servlets
ndg-web-server
ndg-web-ui
LICENSE.txt
README.txt

README.txt

To set a development environment for NDG on Linux the canonical URL is https://projects.forum.nokia.com/ndg/wiki/DevEnv

The NDG project is made up of various modules which combine to make the whole application. 

** MODULES **

The server modules are:

  ndg-commons-core
  ndg-server-core
  ndg-server-servlets
  ndg-web-server
  
The web user interface module is:

  ndg-web-ui
    

** SHORT INSTRUCTIONS **

If you are lazy:

Download JBoss-4.2.2.GA and then checkout the code. Compile it using ant and copy the files into the correct locations in the server. Start the server listening on all interfaces. 

** LONGER INSTRUCTIONS **

NDG depends on openjdk-6-jre, mysql-server-5.1 and Flash.
Run
    $ sudo apt-get install openjdk-6-jre mysql-server-5.1 flashplugin-nonfree

Add the following environment variables to your ~/.bashrc file:

    export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
    export PATH=$JAVA_HOME/bin:$PATH

Download the database_script.sql file on https://projects.forum.nokia.com/ndg/attachment/wiki/DevEnv/database_script.sql and run:

    $ mysql -h localhost -u root -p < PATH_TO/database_script.sql
    $ mysql -u root -p
    mysql> grant usage on *.* to ndg@localhost identified by 'ndg';
    mysql> grant all privileges on ndg.* to ndg@localhost;

Now you can login using "ndg" as username and password.

To compile, run the following ant build files:

    $ ant -f ndg-server-core/packaging-build.xml
    $ ant -f ndg-commons-core/packaging-build.xml
    $ ant -f ndg-server-servlets/packaging-build.xml
    $ ant -f ndg-web-server/deploy/build.xml

You need JBoss-4.2.2.GA to run the server, download and extract it.
You can get it from http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.2.GA/jboss-4.2.2.GA.zip/download?use_mirror=softlayer
After the compilation process is over, copy or symbolic links the following files to the following destinations:

ndg-commons-core/build/ndg-commons.jar          $JBOSS_HOME/server/default/lib
ndg-server-core/build/msmjms.jar                $JBOSS_HOME/server/default/lib
ndg-server-core/build/ndg-ejb-client.jar        $JBOSS_HOME/server/default/lib
ndg-server-core/build/ndg-core.ear              $JBOSS_HOME/server/default/deploy
ndg-server-servlets/build/ndg-servlets.war      $JBOSS_HOME/server/default/deploy
ndg-web-server/deploy/ndgFlex.war               $JBOSS_HOME/server/default/deploy

conf/msm-core.properties                        $JBOSS_HOME/server/default/conf
conf/msm-settings.properties                    $JBOSS_HOME/server/default/conf
conf/ndg.jad                                    $JBOSS_HOME/server/default/conf
conf/survey_protocol.properties                 $JBOSS_HOME/server/default/conf
conf/version.properties                         $JBOSS_HOME/server/default/conf

deploy/ndg-ds.xml                               $JBOSS_HOME/server/default/deploy
deploy/ndg-ota.war                              $JBOSS_HOME/server/default/deploy

lib/indt-smslib.jar                             $JBOSS_HOME/server/default/lib
lib/jboss-common-client.jar                     $JBOSS_HOME/server/default/lib
lib/mysql-driver.jar                            $JBOSS_HOME/server/default/lib
lib/poi-3.1-FINAL-20080629.jar                  $JBOSS_HOME/server/default/lib
lib/smslib-3.3.0.jar                            $JBOSS_HOME/server/default/lib
lib/velocity-1.6.1-dep.jar                      $JBOSS_HOME/server/default/lib

Next, you need to edit msm-settings.properties and msm-core.properties configuration files.

After that, you need to start JBoss.
Move into $JBOSS_HOME/bin and run 

    $ sh run.sh

Once the server is up, go to your web browser and type

    http://localhost:8080/ndgFlex/swf/main.html

Username: admin	
Password: ndg

Something went wrong with that request. Please try again.